/* Good Coffee Company: public group website.
   Direction: an editorial field guide. Warm paper, ink rules, large type, and one colour field per café.
   Typography: Roc Grotesk, as the websites use it. Scale, rules and tracking do the work.
   Mobile first. Motion is one staggered page load and a hover on the café fields. Reduced motion turns it off. */

:root {
  color-scheme: light;
  --paper: #f6f1e9;
  --paper-deep: #efe6d9;
  --ink: #241b16;
  --muted: #5e5148;
  --hair: #d8cdbd;
  --white: #ffffff;
  --autumn: #0000de;
  --crumb: #853223;
  --crumb-blush: #f3e3dc;
  --haze: #f65275;
  --haze-text: #a3173f;
  --open: #fff0b3;
  --display: "Roc Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Roc Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

/* Skip-link target: focusable for the skip link, no ring on the whole page. */
#main:focus { outline: none; }

body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Film grain over the whole page. Decorative only, and it never catches clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 60; padding: 0.5rem 0.8rem; background: var(--ink); color: var(--paper); }

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

.label {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.open { background: var(--open); color: var(--ink); border-radius: 3px; padding: 0 0.2em; }

.help { margin: 0; font-size: 0.92rem; color: var(--muted); }
.pin-err { color: var(--haze-text); font-weight: 600; margin-top: 6px; }

/* Draft notice */
.draft { margin: 0; background: var(--open); color: var(--ink); padding: 10px var(--gutter); font-size: 0.9rem; }
.draft.strong { font-weight: 600; }

/* Top strip */
.strip { background: var(--ink); color: var(--paper); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { width: 150px; height: auto; }
.nav-desktop { display: none; }
.nav-desktop ul,
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 26px; }
.nav-desktop a,
.menu-panel a { text-decoration: none; font-weight: 500; }
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.end { display: flex; align-items: center; gap: 12px; }
.staff-btn,
.nav-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s var(--ease);
}
.staff-btn:hover,
.staff-btn[aria-current="page"],
.nav-btn:hover,
.nav-btn[aria-current="page"] { background: var(--autumn); }
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 45;
  min-width: 240px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.menu-panel li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}

@media (max-width: 719px) {
  .strip .wrap span:last-child { display: none; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(10.2px, calc(7vw - 37.8px), 50.2px); /* bottom padding less 1cm (37.8px) */ }
.hero h1 {
  font-size: clamp(2.7rem, 8.4vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 13ch;
  margin-bottom: 30px;
}
.lede {
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 34px;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--autumn); border-color: var(--autumn); }

/* One orchestrated entrance: each element rises in turn */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 80ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Index: the site's table of contents, set large */
.index { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.index li { border-bottom: 1px solid var(--ink); }
.index a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
  text-decoration: none;
  transition: padding-left 0.4s var(--ease);
}
.index a:hover { padding-left: 14px; }
.index .n { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--muted); }
.index .t { font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; }
.index .arrow { font-size: 1.5rem; transition: transform 0.4s var(--ease); }
.index a:hover .arrow { transform: translateX(8px); }

/* Café fields: one full-bleed colour per café */
.fields { display: grid; }
.field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  text-decoration: none;
}
.field::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  right: -22%;
  bottom: -32%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.9s var(--ease);
}
.field:hover::after { transform: scale(1.22); }
.field h3 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.field p { max-width: 30ch; margin: 0; }
.field .label { color: inherit; opacity: 0.85; margin-bottom: 16px; }
.go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.go span { transition: transform 0.4s var(--ease); }
.field:hover .go span { transform: translateX(8px); }
.field-autumn { background: var(--autumn); color: var(--white); }
.field-crumb { background: var(--crumb); color: var(--crumb-blush); }
.field-haze { background: var(--haze); color: var(--ink); }
.field-autumn:focus-visible,
.field-crumb:focus-visible { outline-color: var(--white); outline-offset: -10px; }
.field-haze:focus-visible { outline-offset: -10px; }

@media (min-width: 900px) {
  .fields { grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section { padding: clamp(60px, 8vw, 112px) 0; border-top: 3px solid var(--ink); }
.grid-2 { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 4fr 8fr; gap: 64px; }
}
.section h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.values { list-style: none; margin: 0; padding: 0; }
.values li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--hair);
}
.values li:last-child { border-bottom: 1px solid var(--hair); }
.values .n { font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 0.45rem; font-size: 0.9rem; }
.values h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -0.015em; margin-bottom: 6px; }
.values p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Interior page heading */
.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); border-bottom: 3px solid var(--ink); }
.page-head h1 {
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 26px;
}

/* Café venue blocks */
.venue { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--hair); }
.venue .bar-top { height: 12px; background: var(--c); margin-bottom: 26px; }
.venue h2 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--ct);
}
.venue .desc { max-width: 54ch; color: var(--muted); margin-bottom: 26px; }
.venue .sub { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.015em; margin: 40px 0 14px; }
.facts { margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--hair);
}
.facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 0.2rem;
}
.facts dd { margin: 0; }
.c-autumn { --c: var(--autumn); --ct: var(--autumn); }
.c-crumb { --c: var(--crumb); --ct: var(--crumb); }
.c-haze { --c: var(--haze); --ct: var(--haze-text); }
@media (max-width: 519px) {
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Blog placeholder */
.soon {
  max-width: 42rem;
  padding: clamp(28px, 4vw, 44px);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: var(--paper-deep);
}
.soon h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; margin-bottom: 14px; }

/* About timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
.timeline li:last-child { border-bottom: 1px solid var(--hair); }
.timeline .when { font-variant-numeric: tabular-nums; font-size: 1.3rem; letter-spacing: -0.02em; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 519px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* Staff page */
.pin {
  display: grid;
  gap: 14px;
  max-width: 30rem;
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper-deep);
  border-radius: 22px;
  margin-bottom: 44px;
}
.pin label { font-weight: 600; }
.pin input {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  text-align: center;
}
.handbook-links { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-width: 30rem; }
.handbook-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
}
.handbook-links a:hover { background: var(--ink); color: var(--paper); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0 36px; }
.site-footer a { color: var(--paper); text-decoration-color: rgba(246, 241, 233, 0.5); }
.site-footer .label { color: rgba(246, 241, 233, 0.7); }
.foot-logo { display: inline-block; background: var(--paper); padding: 12px 14px; border-radius: 14px; }
.foot-logo img { width: 170px; height: auto; }
.foot-grid { display: grid; gap: 36px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid p { margin: 0 0 6px; }
/* Footer section titles are headings for screen readers, styled as the old labels. */
.foot-grid .foot-title { font-family: inherit; margin: 0 0 6px; }
.foot-base {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 233, 0.2);
  font-size: 0.9rem;
  color: rgba(246, 241, 233, 0.75);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* Reduced motion: no entrance, no hover travel */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .field::after,
  .index a,
  .index .arrow,
  .go span,
  .btn,
  .staff-btn, .nav-btn { transition: none !important; }
  .field:hover::after { transform: none; }
  .index a:hover { padding-left: 0; }
  .field:hover .go span { transform: none; }
}

/* Phones: Library and Staff move into the Menu panel, so the header has room for the logo and Menu. */
@media (max-width: 899px) {
  .nav-btn, .staff-btn { display: none; }
}
