/* ============================================================
   The Broker — Sunday roasts, seven days a week
   Palette: ink black / paper white / broker blue
   Type: Playfair Display (display) + Karla (body/UI)
   ============================================================ */

:root {
  --ink:        #0c0c0e;
  --ink-2:      #18181b;
  --ink-3:      #26262b;
  --paper:      #fafafa;
  --paper-2:    #ffffff;
  --line:       #e4e4e7;
  --line-dark:  #303036;
  --text:       #131316;
  --text-soft:  #55555e;
  --text-inv:   #f5f5f7;
  --text-inv-soft: #a6a6b0;
  --blue:       #2563eb;
  --blue-bright:#3b82f6;
  --blue-deep:  #1d4ed8;
  --err:        #dc2626;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Karla', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1120px;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  padding: 10px 16px; background: var(--blue); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: 0 0 6px 6px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-ui);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--text-inv); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(12, 12, 14, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: var(--blue);
  border-radius: 2px;
  padding-top: 2px; /* Playfair sits high in its box */
}
.brand-mark.small { width: 26px; height: 26px; font-size: .95rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-inv);
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-inv-soft);
  text-decoration: none;
  border-radius: 2px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-cta { padding: 11px 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(88vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 22px 88px;
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(37, 99, 235, .16), transparent 65%),
    linear-gradient(180deg, #0c0c0e 0%, #121216 70%, #0c0c0e 100%);
  color: var(--text-inv);
  overflow: hidden;
}
.hero::after {
  /* faint pinstripe texture, a nod to the name */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.014) 22px 23px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-rule {
  width: 56px;
  height: 3px;
  background: var(--blue-bright);
  margin-bottom: 34px;
}
.hero-kicker {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-inv-soft);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: .01em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: #d6d6dc;
  max-width: 34em;
  margin-bottom: 40px;
}
.hero-sub em { font-family: var(--font-display); font-style: italic; color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 46px; }
.hero-hours {
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ---------- Sections ---------- */
.section { padding: 96px 22px; }
.section-dark { background: var(--ink); color: var(--text-inv); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-kicker {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-dark .section-kicker { color: var(--blue-bright); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-lede {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 44em;
  margin-bottom: 48px;
}
.section-dark .section-lede { color: var(--text-inv-soft); }

/* ---------- Roasts ---------- */
.roast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}
.roast-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 28px 26px 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.roast-card:hover {
  border-top-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(12, 12, 14, .35);
}
.roast-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.roast-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
}
.roast-price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--blue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.roast-card p { font-size: .98rem; color: var(--text-soft); }
.roast-note {
  margin-top: 40px;
  font-size: .98rem;
  color: var(--text-soft);
  font-style: italic;
  max-width: 46em;
}

/* ---------- Booking form ---------- */
.booking-form { text-align: left; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-inv);
  margin-bottom: 7px;
}
.req { color: var(--blue-bright); }
.optional { color: var(--text-inv-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-inv);
  background: var(--ink-3);
  border: 1.5px solid var(--line-dark);
  border-radius: 2px;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #74747e; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4a4a52; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: #2b2b31;
}
.field input:not(:placeholder-shown):invalid,
.field .touched:invalid { border-color: var(--err); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9a9aa4 50%), linear-gradient(135deg, #9a9aa4 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select:required:invalid { color: #74747e; }
.field option { color: var(--text-inv); background: var(--ink-2); }
.booking-form .btn-wide { margin-top: 8px; }
.form-status {
  min-height: 1.4em;
  margin-top: 16px;
  font-weight: 600;
  color: var(--blue-bright);
}
.form-status.show { animation: status-in .3s ease both; }
@keyframes status-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-smallprint {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text-inv-soft);
}

/* ---------- Hours ---------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.hours-table th,
.hours-table td { padding: 13px 6px; border-bottom: 1px solid var(--line); }
.hours-table th { text-align: left; font-weight: 600; }
.hours-table td { text-align: right; color: var(--text-soft); }
.hours-table .sunday-row th { color: var(--blue); }
.hours-table .sunday-row th::after {
  content: "The big one";
  margin-left: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 3px 8px;
  border-radius: 2px;
  vertical-align: 2px;
  white-space: nowrap;
}
.hours-note { margin-top: 22px; font-size: .95rem; color: var(--text-soft); }

/* ---------- Find us ---------- */
.find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 34px;
}
.find-label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 10px;
}
.find-grid p { color: #d6d6dc; }
.find-grid a { color: #fff; text-decoration-color: var(--blue-bright); text-underline-offset: 3px; }
.find-grid a:hover { color: var(--blue-bright); }

/* ---------- Footer ---------- */
.footer {
  background: #060607;
  border-top: 1px solid var(--line-dark);
  padding: 44px 22px 48px;
  text-align: center;
  color: var(--text-inv-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-inv);
  margin-bottom: 8px;
}
.footer-line { font-size: .92rem; margin-bottom: 16px; }
.footer-legal { font-size: .8rem; color: #6c6c76; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; gap: 14px; }
  .nav-cta { padding: 10px 16px; font-size: .85rem; }
  .hero { min-height: calc(78vh - var(--nav-h)); padding: 72px 20px 64px; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 340px; }
  .section { padding: 68px 20px; }
  .section-lede { margin-bottom: 36px; }
  .roast-head { flex-direction: column; gap: 2px; }
  .hours-table .sunday-row th::after { display: inline-block; margin: 4px 0 0; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.15rem; }
  .hours-table th, .hours-table td { padding: 11px 2px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
