/* Colours, type and plain elements. */

:root {
  --navy: #0b1418;
  --sea: #12242b;
  --sea-2: #183039;
  --slate: #3d5560;
  --mist: #9fb0b4;
  --foam: #e9e4d8;
  --lamp: #e8a33a;
  --lamp-soft: rgba(232, 163, 58, 0.14);
  --line: rgba(233, 228, 216, 0.12);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Big Shoulders Stencil", "Big Shoulders Stencil Display", "Barlow Condensed", sans-serif;

  --wrap: 72rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 2rem 0 0.75rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
  margin: 0 0 1.1rem;
}

a {
  color: var(--lamp);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--foam);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--lamp);
  font-style: italic;
  color: var(--mist);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

/* Forms, so login and contact pages look at home. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  max-width: 28rem;
  padding: 0.6rem 0.75rem;
  background: var(--sea);
  color: var(--foam);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  font: inherit;
}

input[type="submit"],
button.button,
.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--lamp);
  border-radius: var(--radius);
  background: var(--lamp);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

input[type="submit"]:hover,
.button:hover {
  background: var(--foam);
  border-color: var(--foam);
  color: var(--navy);
}

.button--ghost {
  background: transparent;
  color: var(--foam);
  border-color: var(--slate);
}

.button--ghost:hover {
  background: transparent;
  border-color: var(--foam);
  color: var(--foam);
}

.form-item {
  margin-bottom: 1.25rem;
}

.form-item label {
  display: block;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.description {
  color: var(--mist);
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:focus {
  position: static !important;
  clip: auto;
  overflow: visible;
  height: auto;
  width: auto;
}
