/* ==========================================================================
   Cafe Dating — company site
   Design system: "chartered guild house" — ink espresso + parchment,
   Fraunces display / Inter body / IBM Plex Mono utility, brass wax-seal motif.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --ink: #2B1B14;
  --ink-soft: #40291D;
  --parchment: #F6EFE2;
  --parchment-dim: #EDE3D0;
  --roast: #7A2E22;
  --roast-deep: #5C2119;
  --brass: #B08945;
  --brass-bright: #C9A057;
  --steam: #8B8178;
  --verified: #4B6B4F;
  --porcelain: #2F5C82;
  --porcelain-bright: #4C7EA8;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Grotesk', var(--body);

  --radius: 3px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------- Typography -------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; }

/* -------------------- Header -------------------- */
.site-header {
  background: var(--ink);
  color: var(--parchment);
  padding: 18px 0;
  border-bottom: 3px solid var(--brass);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--parchment);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brass-bright);
  font-weight: 400;
  margin-top: 2px;
}
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
nav.primary-nav a {
  text-decoration: none;
  color: var(--parchment-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color .15s, color .15s;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--porcelain-bright);
  border-color: var(--porcelain-bright);
}

/* -------------------- Hero -------------------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(176,137,69,0.16), transparent 45%),
    var(--ink);
  color: var(--parchment);
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-rings circle {
  fill: none;
  stroke: rgba(176,137,69,0.16);
  stroke-width: 1;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--parchment);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 14px 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-bright);
  position: relative;
}
.hero h1 .swash {
  display: block;
  width: 130px;
  height: 14px;
  margin: -6px 0 4px 4px;
}
.hero h1 .swash path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: round;
}
.hero p.lede { color: #D9CDBB; }
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------- Badge & people band -------------------- */
.hero-badge {
  justify-self: center;
  width: 220px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
  transition: transform .35s ease;
}
.hero-badge:hover { transform: rotate(-4deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .hero-badge { transition: none; }
}
.people-band { background: var(--parchment-dim); padding-top: 56px; padding-bottom: 56px; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.people-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(43,27,20,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.people-grid img:hover {
  transform: scale(1.035);
  box-shadow: 0 12px 24px rgba(43,27,20,0.18);
}
@media (max-width: 760px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
}

/* -------------------- Ticker -------------------- */
.ticker {
  background: var(--roast);
  color: var(--parchment);
  overflow: hidden;
  border-bottom: 1px solid rgba(246,239,226,0.15);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: ticker-scroll 34s linear infinite;
}
.ticker-track span.dot { color: var(--brass-bright); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--brass-bright);
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--porcelain); color: var(--parchment); border-color: var(--porcelain); }
.btn-primary:hover { background: var(--porcelain-bright); border-color: var(--porcelain-bright); color: var(--parchment); }
.btn-ghost { color: var(--parchment); border-color: var(--porcelain-bright); }
.btn-ghost:hover { background: var(--porcelain); border-color: var(--porcelain); }

/* -------------------- Sections -------------------- */
section { padding: 72px 0; }
.section-head { margin-bottom: 40px; max-width: 68ch; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 10px; }

.divider {
  border: none;
  border-top: 1px solid rgba(43,27,20,0.14);
  margin: 0;
}

/* -------------------- Site directory -------------------- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.directory-card {
  background: #fff;
  border: 1px solid rgba(43,27,20,0.1);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.directory-card:nth-child(even):hover { transform: translateY(-5px) rotate(-0.6deg); }
.directory-card:nth-child(odd):hover { transform: translateY(-5px) rotate(0.6deg); }
.directory-card:hover {
  box-shadow: 0 16px 32px rgba(43,27,20,0.16);
  border-color: var(--brass);
}
.directory-card .stamp {
  transition: transform .3s ease;
}
.directory-card:hover .stamp {
  transform: rotate(-14deg) scale(1.08);
}
.directory-card .stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  opacity: 0.85;
  object-fit: contain;
}
.directory-card .cat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--roast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.directory-card h3 {
  font-size: 1.15rem;
  margin: 8px 0 6px;
  padding-right: 50px;
}
.directory-card p {
  font-size: 14px;
  color: var(--steam);
  margin: 0 0 16px;
}
.directory-card a.visit {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--porcelain);
  text-decoration: none;
  border-bottom: 1px solid var(--porcelain);
  padding-bottom: 2px;
}
.directory-card a.visit:hover { color: var(--porcelain-bright); border-color: var(--porcelain-bright); }

.directory-group-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steam);
  margin: 40px 0 16px;
}
.directory-group-label:first-child { margin-top: 0; }

/* -------------------- Trust / safety -------------------- */
.trust-band { background: var(--parchment-dim); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 12px;
}
.trust-item { padding-left: 0; }
.trust-item h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.trust-item h4::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--verified);
  display: inline-block;
}
.trust-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* -------------------- Timeline (About) -------------------- */
.timeline {
  border-left: 2px solid var(--brass);
  margin-left: 6px;
  padding-left: 28px;
}
.timeline-entry { position: relative; margin-bottom: 30px; }
.timeline-entry:last-child { margin-bottom: 0; }
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -33.5px;
  top: 4px;
  width: 11px;
  height: 11px;
  background: var(--brass);
  border-radius: 50%;
  border: 2px solid var(--parchment);
}
.timeline-entry .yr {
  font-family: var(--mono);
  color: var(--roast);
  font-size: 13px;
}
.timeline-entry p { margin: 4px 0 0; color: var(--ink-soft); }

/* -------------------- Charity band -------------------- */
.charity-band {
  background: var(--roast);
  color: var(--parchment);
}
.charity-band h2 { color: var(--parchment); }
.charity-band .lede { color: #EAD9CC; }
.charity-card {
  background: rgba(246,239,226,0.08);
  border: 1px solid rgba(246,239,226,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

/* -------------------- Footer -------------------- */
footer {
  background: var(--ink);
  color: #C9BEB0;
  padding: 44px 0 28px;
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer .legal {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #8A7E6E;
  margin-top: 6px;
}
footer nav ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
footer nav a { text-decoration: none; color: #C9BEB0; }
footer nav a:hover { color: var(--porcelain-bright); }

/* -------------------- Responsive -------------------- */
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  nav.primary-nav ul { flex-wrap: wrap; gap: 16px 20px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero .seal { justify-self: start; width: 100px; height: 100px; }
  footer .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .directory-card { transition: none; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--porcelain-bright);
  outline-offset: 2px;
}

/* -------------------- Scroll reveal -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
