/* Hair & photography site, version 2 (17 Nov 2026).
   The look she chose: an archive of small numbered prints on a white page,
   one typewriter font (Cutive Mono, self-hosted, SIL OFL), a dots menu on
   phones that opens a full-screen list of four words.
   No inline styles anywhere (the site's security policy blocks them). */

/* ---- Font ------------------------------------------------------------------ */
@font-face {
  font-family: "Cutive Mono";
  src: url("fonts/cutive-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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 {
  /* Macrons (ā ē ī ō ū) and other accented letters */
  font-family: "Cutive Mono";
  src: url("fonts/cutive-mono-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --sage: #76766a;      /* current page and hover. 4.6:1 on white, readable */
  --line: #e4e4de;      /* hairlines in the price list and form */
  --error: #a3271f;
  --font: "Cutive Mono", ui-monospace, "Courier New", monospace;

  --bar: 60px;          /* header height */
  --pad: 20px;          /* page side padding */
  --thumb: 104px;       /* thumbnail height in the numbered grid */
  --max: 1600px;
}
@media (min-width: 50.625em) {
  :root { --bar: 77px; --pad: 32px; --thumb: 190px; }
}
@media (min-width: 75em) {
  :root { --thumb: 210px; }
}

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 16px);
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 50.625em) {
  body { font-size: 16px; }
}
img { max-width: 100%; height: auto; }
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; font-size: inherit; line-height: 1.5; margin: 0; }
p { margin: 0; }
ul[role="list"], ol[role="list"], dl { list-style: none; margin: 0; padding: 0; }
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
.muted { color: var(--sage); }
.lead { -webkit-text-stroke: 0.45px currentColor; text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Skip link --------------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--pad); top: -100px; z-index: 50;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---- Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  background: var(--bg);
}
.bar {
  display: flex; align-items: center; gap: 20px;
  height: var(--bar);
  max-width: var(--max); margin: 0 auto;
  padding-inline: var(--pad);
}
.name {
  margin-left: auto;              /* phones: name at the right, dots at the left */
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;                /* a taller tap target without moving the text */
}
.nav-list { display: flex; gap: 20px; }
.nav-list a {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  text-decoration: none;
  display: inline-block;
  padding: 10px 0;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--sage); }

/* The dots button. Drawn with borders so it stays visible in Windows'
   high-contrast mode. */
.menu-toggle {
  display: none;
  order: -1;
  width: 44px; height: 44px;
  margin-left: -12px;
  padding: 0;
  border: 0; background: none; color: inherit;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.dots { display: flex; gap: 4px; }
.dots span { width: 0; height: 0; border: 2.5px solid currentColor; border-radius: 50%; }
.x { display: none; position: relative; width: 18px; height: 18px; }
.x::before, .x::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 50%;
  border-top: 1px solid currentColor;
}
.x::before { transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .dots { display: none; }
.menu-toggle[aria-expanded="true"] .x { display: block; }

/* Phones with JavaScript: the dots open a full-screen white menu of four big words. */
@media (max-width: 50.6em) {
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js.menu-open .nav {
    display: block;
    position: fixed; inset: var(--bar) 0 0; z-index: 20;
    background: var(--bg);
    overflow-y: auto;
  }
  .js .nav-list {
    flex-direction: column; align-items: center; justify-content: space-evenly;
    gap: 8px;
    min-height: 100%;
    padding: 24px 0 calc(var(--bar) + 24px);
  }
  .js .nav-list a {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: 0.05em;
    padding: 8px 16px;
  }
  .menu-open { overflow: hidden; }

  /* Phones without JavaScript: the four links sit in a row under the name. */
  html:not(.js) .site-header { position: static; }
  html:not(.js) .bar { flex-wrap: wrap; height: auto; padding-block: 8px; gap: 0 20px; }
  html:not(.js) .name { order: -1; margin-left: 0; flex-basis: 100%; }
  html:not(.js) .nav-list { flex-wrap: wrap; gap: 0 18px; }
  html:not(.js) main { padding-top: 24px; }
}
@media (min-width: 50.625em) {
  .name { margin-left: 0; margin-right: auto; font-size: 16px; }
}

/* ---- Page frame ---------------------------------------------------------------- */
main {
  display: block;
  padding-top: calc(var(--bar) + 36px);
  padding-bottom: 96px;
}
main:focus { outline: none; }
@media (min-width: 50.625em) {
  main { padding-top: calc(var(--bar) + 51px); }
}

.intro { max-width: 40em; margin-bottom: 48px; }
.intro h1 { margin-bottom: 14px; }
.intro p + p { margin-top: 12px; }
.actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

/* An outlined button: the only "button" on the site, used for booking. */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 14px; letter-spacing: 0.1em; text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: var(--ink); color: var(--bg); }
.text-link { display: inline-block; padding: 10px 0; font-size: 14px; letter-spacing: 0.05em; }
.text-link:hover { color: var(--sage); }

/* ---- The numbered grid ----------------------------------------------------------- */
/* Phones: three columns of small prints. Desktop: prints at one height and
   their own width, wrapping with a ragged right edge. */
.index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 44px;
}
.index a { display: block; text-decoration: none; }
.index img {
  display: block;
  width: 100%;
  height: var(--thumb);
  object-fit: contain;
  object-position: left bottom;
  transition: opacity 0.15s ease;
}
.index a:hover img { opacity: 0.82; }
.index .num {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.index a:hover .num { color: var(--sage); }
@media (min-width: 50.625em) {
  .index { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 72px 64px; }
  .index img { width: auto; max-width: none; }
}

/* ---- Prices ------------------------------------------------------------------- */
.price-list { max-width: 52em; border-bottom: 1px solid var(--line); }
.price-list li {
  display: grid;
  grid-template-columns: 2.5ch 1fr auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.price-list .num { font-size: 12px; }
.price-list .what { min-width: 0; }
.price-list .detail { display: block; margin-top: 2px; font-size: 14px; color: var(--sage); }
.price-list .price { text-align: right; white-space: nowrap; }
.price-notes { max-width: 40em; margin-top: 32px; font-size: 14px; }
.price-notes li { padding-left: 2ch; text-indent: -2ch; }
.price-notes li::before { content: "- "; }
.price-notes li + li { margin-top: 6px; }
@media (max-width: 30em) {
  .price-list li { grid-template-columns: 2.5ch 1fr; row-gap: 6px; }
  .price-list .price { grid-column: 2; text-align: left; }
}

/* ---- About ------------------------------------------------------------------- */
.about { display: grid; gap: 28px; }
.about-copy { max-width: 36em; padding-top: 4px; }
.about-copy p + p { margin-top: 20px; text-wrap: pretty; }
.about-copy .lead + p { margin-top: 16px; }
.about-copy h1 { margin-bottom: 14px; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; }
@media (min-width: 50.625em) {
  .about { grid-template-columns: minmax(0, 1fr) 43%; gap: 76px; align-items: start; }
  .portrait img { width: 93%; }
}

.reach { margin-top: 40px; display: grid; gap: 18px; }
.reach dt { font-size: 13px; letter-spacing: 0.1em; color: var(--sage); }
.reach dd { margin: 2px 0 0; }
.reach dd a { display: inline-block; padding: 6px 0; }
.reach .sep { padding-inline: 10px; color: var(--sage); }

/* ---- Contact form ----------------------------------------------------------------- */
.enquire { margin-top: 96px; max-width: 40em; }
.enquire h2 { margin-bottom: 8px; }
.enquire > p { margin-bottom: 28px; }
.anchor-targets span { display: block; height: 0; }
.form { display: grid; gap: 22px; }
.field label, .choices legend, .photo-questions > legend {
  display: block;
  font-size: 13px; letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.hint { font-size: 13px; color: var(--sage); letter-spacing: 0; }
.field input, .field textarea {
  display: block; width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit;
}
.field textarea { padding: 10px; border: 1px solid var(--ink); resize: vertical; }
.field .hint { margin-top: 6px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices label {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px;
  cursor: pointer;
}
.choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.photo-questions { display: grid; gap: 22px; padding-left: 16px; border-left: 1px solid var(--line); }
.photo-questions[hidden] { display: none; }
.field-error { display: none; margin-top: 6px; font-size: 14px; color: var(--error); }
.field:has([aria-invalid="true"]) > .field-error,
.choices:has([aria-invalid="true"]) > .field-error { display: block; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--error); }
.form-alt { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ------------------------------------------------------------------- */
.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) 32px;
  font-size: 12px; letter-spacing: 0.02em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .footer-note { display: inline-block; padding: 10px 0; }

/* ---- Simple pages (thank you, not found) -------------------------------------------- */
.simple { max-width: 36em; }
.simple p + p { margin-top: 16px; }

/* ---- Photo viewer ----------------------------------------------------------------- */
/* Full-screen white, the photo sized to fit the screen, "previous 3 / 12 next"
   underneath. The page behind it doesn't scroll while it's open. */
.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
  font: inherit;
}
.lightbox[open] { display: grid; grid-template-rows: var(--bar) minmax(0, 1fr) auto; }
.lightbox::backdrop { background: var(--bg); }
.lb-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--pad);
}
.lb-top .button { min-height: 40px; }
.lb-stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
  padding: 8px var(--pad);
}
.lb-img {
  display: block;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.lb-bottom {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 8px var(--pad) max(16px, env(safe-area-inset-bottom));
  font-size: 14px; letter-spacing: 0.1em;
}
.lb-btn {
  min-width: 44px; min-height: 44px;
  padding: 0 8px;
  border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit;
  cursor: pointer;
}
.lb-btn:hover { color: var(--sage); }
.lb-close { margin-left: -12px; display: inline-flex; align-items: center; justify-content: center; }
.lb-close .x { display: block; }
.lb-count { min-width: 7ch; text-align: center; }
