/* Third Dimension Print
   Harbour teal, charcoal, copper. Flat colour. Space Grotesk.
   Palette: #1C2430 #1A6B6A #114F4E #2A8A88 #3AA8A4 #C4652A #FFFFFF */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/space-grotesk-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --charcoal: #1c2430;
  --teal: #1a6b6a;
  --layer: #114f4e;
  --teal-mid: #2a8a88;
  --teal-light: #3aa8a4;
  --copper: #c4652a;
  --paper: #ffffff;
  --header-offset: 12.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  padding-bottom: 4.75rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 8vw, 3.75rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p,
li {
  max-width: 40rem;
}

a {
  color: var(--layer);
  text-underline-offset: 0.16em;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--charcoal);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 30;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.35rem;
  line-height: 1.35;
  max-width: 28rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 3px solid var(--teal);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding-block: 0.7rem;
}

.brand {
  flex: 1 0 auto;
  line-height: 0;
}

.brand img {
  height: 3.6rem;
  width: auto;
}

.header-contact {
  display: none;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.header-contact a {
  color: var(--charcoal);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-contact a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.nav {
  width: 100%;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.55rem;
  color: var(--charcoal);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.hero {
  padding: 2.25rem 0 2.5rem;
}

.deadline {
  margin: 1.35rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 6px solid var(--copper);
  font-size: 1.2rem;
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  background: var(--teal);
  color: var(--paper);
  border: 3px solid var(--teal);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--layer);
  border-color: var(--layer);
  color: var(--paper);
}

.button--ghost {
  background: var(--paper);
  color: var(--layer);
}

.button--ghost:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

section {
  padding: 2.75rem 0;
  scroll-margin-top: var(--header-offset);
}

.section-rule {
  border-top: 3px solid var(--teal);
}

.gift-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: 1.5rem;
}

.gift {
  display: grid;
  gap: 0.85rem;
  max-width: none;
  padding-top: 1rem;
  border-top: 2px solid var(--teal);
}

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  height: 8.75rem;
  padding: 0.45rem;
  background-color: var(--paper);
  border: 2px solid var(--teal);
  overflow: hidden;
}

.photo-slot img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.photo-slot::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--copper);
}

.photo-slot--portrait {
  height: auto;
  aspect-ratio: 4 / 5;
  max-width: 18rem;
  min-height: 14rem;
}

.photo-slot--portrait img {
  width: 100%;
  height: auto;
  max-height: 100%;
}

.hours {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  max-width: 28rem;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.65rem 0;
  border-top: 2px solid var(--paper);
  max-width: none;
  color: var(--paper);
  font-weight: 500;
}

.hours strong {
  font-weight: 700;
}

.price {
  margin: 0.3rem 0 0;
  color: var(--teal);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: none;
}

.gift p:not(.price) {
  margin: 0.35rem 0 0;
}

.note {
  margin-top: 1.25rem;
  font-weight: 500;
}

.steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin: 0;
  padding: 1rem 0 1rem 3.6rem;
  border-top: 2px solid var(--teal);
  max-width: 40rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--paper);
  font-weight: 700;
}

.band {
  background: var(--teal);
  color: var(--paper);
}

.band h2,
.band .eyebrow,
.band p,
.band li {
  color: var(--paper);
}

.band a {
  color: var(--paper);
}

.placeholder-callout {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border: 2px solid var(--copper);
  background: var(--paper);
  color: var(--charcoal);
  max-width: 40rem;
}

.placeholder-callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--layer);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.band .placeholder-callout,
.band .placeholder-callout p {
  color: var(--charcoal);
}

.about-grid {
  display: grid;
  gap: 1.25rem;
}

.contact-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--teal);
  max-width: 40rem;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 52px;
  padding: 0.55rem 0;
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

.contact-list a span {
  color: var(--teal);
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--teal);
}

.enquiry-form {
  margin-top: 0.5rem;
  max-width: 36rem;
}

.field {
  margin: 0 0 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-weight: 500;
}

.hint {
  margin: 0.3rem 0 0;
  font-size: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 2px solid var(--teal);
  border-radius: 0;
  background: var(--paper);
  color: var(--charcoal);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-problem {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--copper);
  max-width: 36rem;
  font-weight: 500;
}

.thanks-anchor {
  scroll-margin-top: var(--header-offset);
}

.thanks {
  display: none;
  margin: 1rem 0;
  padding: 1rem 1rem 1rem 1.05rem;
  border-left: 6px solid var(--copper);
  max-width: 40rem;
}

.thanks.is-visible,
#thanks:target + .thanks {
  display: block;
}

#thanks:target ~ .enquiry-form {
  display: none;
}

.thanks h3 {
  margin-bottom: 0.4rem;
}

.privacy h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.15rem;
}

.site-footer {
  border-top: 3px solid var(--teal);
  padding: 1.75rem 0 1.25rem;
}

.footer-grid {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-grid div {
  min-width: 0;
}

.site-footer a {
  overflow-wrap: anywhere;
}

.footer-grid img {
  width: 4.5rem;
  height: auto;
  flex: 0 0 auto;
  border: 2px solid var(--teal);
}

.site-footer p {
  margin: 0.2rem 0;
}

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: var(--charcoal);
  border-top: 3px solid var(--teal);
}

.action-bar a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.35rem 0.25rem;
  color: var(--paper);
  font-weight: 500;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--teal);
}

.action-bar a:last-child {
  border-right: 0;
}

.action-bar a:hover {
  background: var(--layer);
  color: var(--paper);
}

.missing {
  padding: 3rem 0 4rem;
}

.missing h1 {
  max-width: 16ch;
}

@media (min-width: 40rem) {
  .gift {
    grid-template-columns: 12.5rem 1fr;
    align-items: center;
    gap: 1.1rem;
  }

  .photo-slot {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .photo-slot--portrait {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 60rem) {
  :root {
    --header-offset: 11rem;
  }

  body {
    padding-bottom: 0;
  }

  .brand img {
    height: 4.75rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand contact"
      "nav nav";
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0;
  }

  .brand {
    grid-area: brand;
  }

  .header-contact {
    grid-area: contact;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .header-contact a {
    white-space: nowrap;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    margin: 0;
  }

  .nav ul {
    justify-content: flex-start;
    gap: 0.1rem 0.35rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  section {
    padding: 4rem 0;
  }

  .gift-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .about-grid {
    grid-template-columns: 16rem 1fr;
    gap: 2.25rem;
    align-items: start;
  }

  .action-bar {
    display: none;
  }
}

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