/* ==========================================================================
   Varapuzha Fish Mart — site stylesheet
   --------------------------------------------------------------------------
   1.  Fonts
   2.  Design tokens (colours, type, spacing)
   3.  Base
   4.  Layout helpers
   5.  Buttons and icons
   6.  Top bar
   7.  Header, logo badge, navigation
   8.  Home: hero banner
   9.  Home: what we offer, about, how to order, gallery, contact
   10. Footer
   11. Policy pages
   12. Motion
   13. Print
   ========================================================================== */


/* 1. Fonts
   Anek Malayalam (SIL Open Font License, see fonts/OFL.txt), served from this
   site so no visitor data goes to a font service. The Malayalam file is only
   downloaded if a page actually contains Malayalam text.
   ========================================================================== */

@font-face {
  font-family: "Anek Malayalam";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../fonts/anek-malayalam-malayalam.woff2") format("woff2");
  unicode-range: U+0307, U+0323, U+0951-0952, U+0964-0965, U+0D00-0D7F, U+1CDA,
    U+1CF2, U+200C-200D, U+20B9, U+25CC, U+A830-A832;
}

@font-face {
  font-family: "Anek Malayalam";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../fonts/anek-malayalam-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Anek Malayalam";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("../fonts/anek-malayalam-latin.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;
}


/* 2. Design tokens
   ========================================================================== */

:root {
  color-scheme: light;

  /* Colour: taken from the logo (its blue, its grey and white). The logo
     blue is used as it is for the header, banner, headings and buttons;
     white text on it stays readable. */
  --ink-900: #064a7a;      /* top bar and footer: a deeper blue */
  --ink-800: #0a71b9;      /* the logo blue */
  --sky: #bfe3fa;          /* light blue accents on the blue */
  --sky-100: #eaf5fd;      /* tinted sections */
  --logo-grey: #8a8a8a;    /* the grey of "mart" in the logo */
  --link: #085d99;         /* links on light backgrounds */
  --paper: #fcfeff;
  --paper-200: #e9f2f8;
  --ink: #102434;          /* body text */
  --ink-soft: #4d6070;
  --line: #d5e4ef;
  --line-on-dark: rgba(234, 245, 253, 0.24);
  --text-on-dark: #eef7fd;
  --shadow: 4, 38, 64;     /* r, g, b of shadows */

  /* Type */
  --font: "Anek Malayalam", "Segoe UI", system-ui, -apple-system, "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing and sizes */
  --container: 72.5rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 0.375rem;

  /* Header and the round logo badge that hangs from it */
  --header-h: 4.75rem;
  --badge: 8.75rem;          /* diameter of the badge */
  --badge-top: 0.5rem;       /* gap above the badge */
  --badge-stuck: 0.45;       /* badge size after scrolling, as a fraction */
  --badge-type: 1.5rem;      /* text shown until the logo image loads */
  --badge-hang: calc(var(--badge) + var(--badge-top) - var(--header-h));

  /* Focus ring colour; switched to light blue on dark surfaces */
  --focus: var(--link);
}

@media (max-width: 61.99em) {
  :root {
    --header-h: 4rem;
    --badge: 5.75rem;
    --badge-top: 0.375rem;
    --badge-stuck: 0.56;
    --badge-type: 1rem;
  }
}


/* 3. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

strong {
  font-weight: 700;
}

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

::selection {
  background: var(--sky);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.on-dark {
  --focus: var(--sky);
  color: var(--paper);
}

/* Keeps a hyphenated phrase such as "ready-to-fry" on one line. */
.nowrap {
  white-space: nowrap;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--ink-800);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}


/* 4. Layout helpers
   ========================================================================== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--sky-100);
}

.section-title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  font-stretch: 118%;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink-800);
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.4375rem);
  line-height: 1.5;
}


/* 5. Buttons and icons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.0625rem;
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

/* Main button: blue with white text on light backgrounds, white with dark
   blue text on the blue header and banner. */
.btn--primary {
  background: var(--ink-800);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--ink-900);
  color: #ffffff;
}

.on-dark .btn--primary {
  background: #ffffff;
  color: var(--ink-900);
}

.on-dark .btn--primary:hover {
  background: var(--sky);
  color: var(--ink-900);
}

.btn--outline {
  border-color: var(--ink-800);
  color: var(--ink-800);
}

.btn--outline:hover {
  background: var(--ink-800);
  color: #ffffff;
}

.btn--light {
  border-color: rgba(234, 245, 253, 0.75);
  color: var(--paper);
}

.btn--light:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink-900);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
}

@media (max-width: 23.99em) {
  .btn {
    padding-inline: 0.9rem;
    font-size: 1rem;
  }
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 6. Top bar
   ========================================================================== */

.topbar {
  position: relative;
  z-index: 45;
  background: var(--ink-900);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 2.625rem;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  color: var(--text-on-dark);
  text-decoration: none;
}

.topbar__link:hover {
  color: var(--paper);
  text-decoration: underline;
}

.topbar__link .icon,
.topbar__item .icon {
  color: var(--sky);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.5rem;
  color: var(--text-on-dark);
}

.topbar__short {
  display: none;
}

/* On tablets and phones the top bar keeps only the short address, the
   opening hours (tablets) and the phone number; the email stays in the
   footer and the Contact section. */
@media (max-width: 61.99em) {
  .topbar__long,
  .topbar__email {
    display: none;
  }

  .topbar__short {
    display: inline;
  }
}

@media (max-width: 47.99em) {
  .topbar__hours {
    display: none;
  }
}


/* 7. Header, logo badge, navigation
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 40;
  background: var(--ink-800);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* The header only sticks when JavaScript is available, because the script
   also shrinks the logo badge once the page is scrolled. */
.js .site-header {
  position: sticky;
  top: 0;
}

.site-header.is-stuck {
  box-shadow: 0 0.375rem 1.5rem rgba(var(--shadow), 0.3);
}

/* On the home page the header sits on top of the banner photo. This needs
   JavaScript (it turns the header solid again on scroll and when the menu
   opens), so without it the header simply stays solid red. */
.js .page-home .site-header {
  background: transparent;
}

.js .page-home .site-header.is-stuck,
.js .page-home .site-header.nav-open {
  background: var(--ink-800);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
  min-height: var(--header-h);
  padding-left: calc(var(--badge) + 1.25rem);
}

/* Logo badge -------------------------------------------------------------
   The logo sits on a white disc, like the white around the logo, that
   that hangs below the header. After scrolling, or while the phone menu is
   open, the badge shrinks to fit inside the header. */

.brand {
  position: absolute;
  left: 0;
  top: var(--badge-top);
  z-index: 2;
  display: block;
  width: var(--badge);
  height: var(--badge);
  border-radius: 50%;
  text-decoration: none;
}

.brand__badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0.5rem 1.5rem rgba(var(--shadow), 0.4);
  transform-origin: 0 0;
  transition: transform 0.28s ease;
}

.brand__wordmark,
.brand__logo {
  grid-area: 1 / 1;
}

/* The name as text, shown until images/logo.png has loaded (and if it is
   missing). Without JavaScript the logo image is simply shown. */
.brand__wordmark {
  font-size: var(--badge-type);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--ink-800);
  visibility: hidden;
}

/* The logo is wider than it is tall, so it is kept within the circle. */
.brand__logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.js .brand__wordmark {
  visibility: visible;
}

.js .brand__logo {
  opacity: 0;
}

.brand__badge.has-logo .brand__logo {
  opacity: 1;
}

.brand__badge.has-logo .brand__wordmark {
  visibility: hidden;
}

.is-stuck .brand__badge,
.nav-open .brand__badge {
  transform: scale(var(--badge-stuck));
}

/* Navigation ------------------------------------------------------------- */

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 0.25rem;
}

.site-nav__link {
  display: block;
  padding: 0.6rem 0.8rem;
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.5em;
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.5em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid rgba(234, 245, 253, 0.6);
  border-radius: var(--radius);
  background: var(--ink-800);
  color: var(--paper);
  font-size: 1.125rem;
  cursor: pointer;
}

.nav-toggle .icon--close,
.nav-open .nav-toggle .icon--menu {
  display: none;
}

.nav-open .nav-toggle .icon--close {
  display: block;
}

@media (max-width: 61.99em) {
  .js .nav-toggle {
    display: inline-flex;
  }

  /* With JavaScript the links become a drop-down panel. Without it they
     simply wrap below the header so every page stays reachable. */
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    display: none;
    padding: 1.25rem var(--gutter) 1.75rem;
    border-top: 1px solid var(--line-on-dark);
    background: var(--ink-800);
    box-shadow: 0 1.5rem 2rem rgba(var(--shadow), 0.35);
  }

  .js .nav-open .site-nav {
    display: block;
  }

  .js .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .js .site-nav__link {
    padding: 0.9rem 0.125rem;
    border-bottom: 1px solid var(--line-on-dark);
    font-size: 1.125rem;
  }

  .js .site-nav__link:hover,
  .js .site-nav__link[aria-current="page"] {
    text-underline-offset: 0.3em;
  }
}

/* A dark ring keeps the white call button clear wherever it sits over
   something light. */
.header-call {
  box-shadow: 0 0 0 2px var(--ink-900);
}

@media (max-width: 29.99em) {
  .header-call {
    width: 2.75rem;
    padding-inline: 0;
  }

  .header-call__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}


/* 8. Home: hero banner
   The banner shows a large white circle holding the fish from the logo. A
   wide photo saved as images/banner.jpg replaces the circle automatically.
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 88vh, 50rem);
  min-height: clamp(34rem, 88svh, 50rem);
  padding-top: calc(var(--badge-hang) + 3rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
  background: var(--ink-800);
}

/* Slide the banner up underneath the see-through header. */
.js .hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + var(--badge-hang) + 3rem);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Layer 1: the banner photo (only once images/banner.jpg exists) under a
   dark blue tint that keeps the text readable. The tint is strongest at the
   top (menu) and at the bottom (name, buttons). */
.hero.has-banner .hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 40, 68, 0.88) 0%,
      rgba(3, 40, 68, 0.5) 24%,
      rgba(3, 40, 68, 0.5) 38%,
      rgba(3, 40, 68, 0.82) 70%,
      rgba(3, 40, 68, 0.94) 100%
    ),
    url("../images/banner.jpg") center / cover no-repeat;
}

/* The white circle with the fish from the logo. js/main.js hides it as soon
   as images/banner.jpg exists. On phones and tablets it sits above the
   shop's name; on wider screens it sits below the menu, to the right of the
   name. */
.hero__disk {
  position: relative;
  display: grid;
  place-items: center;
  width: min(62vw, 18rem);
  width: min(62vw, 18rem, 48svh); /* smaller on short screens */
  aspect-ratio: 1;
  margin: 0 auto clamp(2.75rem, 9vw, 3.5rem);
  border-radius: 50%;
  background: #ffffff;
  /* a thin second ring, like a stamp */
  box-shadow: 0 0 0 0.75rem var(--ink-800), 0 0 0 0.875rem rgba(191, 227, 250, 0.6);
}

.hero__fish {
  width: 72%;
  height: auto;
  margin-left: 4%; /* the fish's head is heavier, so nudge it right to look centred */
}

.hero.has-banner .hero__disk {
  display: none;
}

/* Phones and tablets: the circle takes its own space above the name, so the
   banner needs less room at the top. */
@media (max-width: 61.99em) {
  .hero {
    padding-top: calc(var(--badge-hang) + 1.5rem);
  }

  .js .hero {
    padding-top: calc(var(--header-h) + var(--badge-hang) + 1.5rem);
  }
}

@media (min-width: 62em) {
  .hero__disk {
    position: absolute;
    top: calc(var(--header-h) + 1.5rem);
    right: clamp(1rem, 4vw - 2rem, 4rem);
    width: min(40vw, 38rem);
    width: min(40vw, 38rem, 88svh - 14rem); /* smaller on short screens */
    margin: 0;
  }
}

/* The shop's name: "Varapuzha" in spaced capitals, as in the logo, above
   "Fish Mart" on two lines (white and light grey, like the blue and grey of
   the logo's "fishmart"), with the logo's line "Delivered fresh & clean"
   below it. */
.hero__title {
  margin-left: 0.04em;
  font-size: min(18vw, 6rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero__title .hero__place {
  margin-bottom: 0.5rem;
  margin-left: 0.1em;
  font-size: clamp(1.25rem, 0.95rem + 1.2vw, 1.875rem);
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sky);
}

.hero__title .hero__mart {
  color: #dfe5ea;
}

.hero__title > span {
  display: block;
}

@media (min-width: 48em) {
  .hero__title {
    font-size: min(13vw, 7rem);
  }
}

@media (min-width: 62em) {
  .hero__title {
    font-size: min(8.5vw, 9rem);
  }
}

/* "— DELIVERED FRESH & CLEAN —", with the logo's two short dashes */
.hero__tagline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.375rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.hero__tagline::before,
.hero__tagline::after {
  content: "";
  flex: none;
  width: 1.5rem;
  height: 0.1875rem;
  background: var(--sky);
}

@media (max-width: 23.99em) {
  .hero__tagline::before,
  .hero__tagline::after {
    display: none;
  }
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--text-on-dark);
  text-wrap: balance;
}

/* Each sentence of the banner line is wrapped in a <span> so that it stays
   on its own line wherever it fits. */
.hero__lead span {
  display: inline-block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

@media (max-width: 29.99em) {
  .hero__actions .btn {
    width: 100%;
  }
}


/* 9. Home: what we offer, about, how to order, gallery, contact
   ========================================================================== */

/* What we offer: four round icons with a short line each ------------------ */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem 1.25rem;
  margin-top: clamp(2.75rem, 6vw, 4rem);
}

.product {
  text-align: center;
}

/* Each icon sits in a pale blue circle with a white gap and a thin blue
   ring. A photo can take its place: see images/README.md. */
.product__icon {
  display: grid;
  place-items: center;
  width: min(100% - 1.25rem, 9.5rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--ink-800);
  box-shadow: 0 0 0 0.375rem var(--paper), 0 0 0 0.5rem var(--ink-800);
}

.product__icon .icon {
  width: 46%;
  height: 46%;
  stroke-width: 1.5;
}

.product__name {
  margin-top: 1.5rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  font-stretch: 110%;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-800);
  text-wrap: balance;
}

.product__text {
  max-width: 16rem;
  margin: 0.5rem auto 0;
  color: var(--ink-soft);
  text-wrap: balance;
}

@media (min-width: 56em) {
  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* About: text with an optional photo (images/about.jpg) beside it -------- */

.about__grid {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: center;
}

.about__text {
  max-width: 40rem;
  margin-top: 1.5rem;
}

.about__text > * + * {
  margin-top: 1.1rem;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-200);
}

/* Until there is a photo, the About section shows the full logo on a white
   card. */
.about__media--logo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 7%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.about__media--logo img {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: none;
}

@media (min-width: 56em) {
  .about__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  /* No photo: the text uses the full width. */
  .about__grid:has(> .about__media[hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* How to order: three steps, each numbered in a small light blue circle --- */

.steps {
  display: grid;
  gap: 3.75rem 2.5rem;
  margin-top: clamp(3.75rem, 7vw, 4.75rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 2.75rem;
  border-top: 2px solid var(--ink-800);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -1.9rem;
  left: -0.3rem;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border: 2px solid var(--ink-800);
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink-900);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.step__title {
  font-size: 1.375rem;
  font-stretch: 110%;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-800);
}

.step__text {
  margin-top: 0.6rem;
  max-width: 24rem;
}

.order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.order__note {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 29.99em) {
  .order__actions .btn {
    width: 100%;
  }
}

/* Gallery: three photos; a missing photo is hidden by js/main.js --------- */

.gallery__grid {
  display: flex;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Each photo takes a third of the row, so one or two photos keep the same
   size as three. */
.gallery__item {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 0;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-200);
}

@media (max-width: 39.99em) {
  .gallery__grid {
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery__item {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }
}

/* Contact ---------------------------------------------------------------- */

.contact__grid {
  display: grid;
  gap: 3rem 4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.contact__address {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-stretch: 114%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-800);
  text-wrap: balance;
}

.contact__address-rest {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.1875rem;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
}

.contact__directions {
  margin-top: 1.75rem;
}

/* Small labels above the shop and the registered address */
.contact__label {
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__label--gap {
  margin-top: 2.5rem;
}

.contact__registered {
  font-size: 1.1875rem;
  line-height: 1.5;
}

.contact__list {
  border-top: 2px solid var(--ink-800);
}

.contact__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.contact__row dt {
  color: var(--ink-soft);
}

.contact__row dd {
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 56em) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 29.99em) {
  .contact__row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* 10. Footer
   ========================================================================== */

.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--ink-900);
  color: var(--text-on-dark);
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sky);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem 3rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.site-footer__name {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.site-footer__about {
  max-width: 18rem;
  margin-top: 1rem;
}

.site-footer__shop {
  margin-top: 0.85rem;
}

.site-footer__heading {
  margin-bottom: 0.85rem;
  font-size: 1.0625rem;
  font-stretch: 108%;
  font-weight: 700;
  color: var(--paper);
}

.site-footer__list li + li {
  margin-top: 0.45rem;
}

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

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.9375rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

@media (min-width: 40em) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62em) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1.15fr 1.25fr 1fr;
  }
}


/* 11. Policy pages (privacy-policy.html, terms-and-conditions.html)
   ========================================================================== */

.page-head {
  padding-top: calc(var(--badge-hang) + 2.75rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--ink-800);
}

.page-head__title {
  margin-left: -0.03em;
  font-size: clamp(2.5rem, 1.4rem + 5.4vw, 5rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.page-head__meta {
  margin-top: 1.1rem;
  color: var(--text-on-dark);
}

.legal {
  display: grid;
  gap: 2rem 4.5rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: var(--section);
}

/* "On this page" list */

.toc__title {
  font-weight: 700;
  color: var(--ink-800);
  cursor: pointer;
}

.toc__list {
  margin-top: 0.85rem;
  border-left: 2px solid var(--line);
}

.toc__link {
  display: block;
  margin-left: -2px;
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc__link:hover {
  color: var(--ink-800);
  text-decoration: underline;
}

.toc__link.is-current {
  border-left-color: var(--ink-800);
  color: var(--ink-800);
  font-weight: 600;
}

@media (min-width: 62em) {
  .legal {
    grid-template-columns: 16rem minmax(0, 1fr);
    align-items: start;
  }

  .legal__toc {
    position: sticky;
    top: calc(var(--header-h) + 2.25rem);
    max-height: calc(100vh - var(--header-h) - 3.5rem);
    overflow-y: auto;
  }

  .toc__title {
    list-style: none;
    cursor: default;
    pointer-events: none;
  }

  .toc__title::-webkit-details-marker {
    display: none;
  }
}

/* Long-form text */

.prose {
  max-width: 68ch;
}

.prose > * + *,
.prose section > * + * {
  margin-top: 1.1rem;
}

.prose section {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.prose h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.1875rem;
  font-stretch: 106%;
  font-weight: 700;
  line-height: 1.3;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose li::marker {
  color: var(--link);
  font-weight: 600;
}

.prose a {
  overflow-wrap: anywhere;
}

.contact-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  line-height: 1.6;
}

.contact-card__name {
  display: block;
  font-size: 1.1875rem;
  font-stretch: 110%;
  font-weight: 700;
  color: var(--ink-800);
}


/* 12. Motion
   One deliberate movement: on the home page the logo badge swings down from
   under the top bar when the page opens. Skipped for people who ask their
   device to reduce motion.
   ========================================================================== */

@keyframes badge-drop {
  from {
    transform: translateY(-115%) rotate(-28deg);
  }

  to {
    transform: translateY(0) rotate(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .page-home .brand {
    animation: badge-drop 0.8s cubic-bezier(0.2, 0.8, 0.25, 1.12) 0.15s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* 13. Print (mainly for the policy pages)
   ========================================================================== */

@media print {
  .topbar,
  .skip-link,
  .site-nav,
  .site-header__actions,
  .legal__toc,
  .hero__media,
  .hero__disk,
  .hero__actions,
  .order__actions,
  .site-footer__grid {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }

  .site-header,
  .js .site-header {
    position: static;
    background: none;
    box-shadow: none;
  }

  .site-header__inner {
    min-height: 0;
    padding-left: 0;
  }

  .brand {
    position: static;
    width: 6rem;
    height: 6rem;
  }

  .brand__badge {
    box-shadow: none;
    transform: none;
  }

  .hero,
  .page-head,
  .site-footer {
    min-height: 0;
    margin-top: 0;
    padding-block: 1rem;
    background: none;
    color: #000;
  }

  .hero__lead,
  .page-head__meta,
  .site-footer a {
    color: #000;
  }

  .legal {
    display: block;
    padding-block: 0;
  }

  .prose {
    max-width: none;
  }

  .prose section {
    break-inside: avoid-page;
  }

  .section {
    padding-block: 1.5rem;
  }
}
