/* Common Hours — editorial stylesheet */

:root {
  --paper: #FAF7F2;
  --paper-warm: #F4EFE5;
  --ink: #1F1B16;
  --ink-soft: #3A352E;
  --muted: #6B6258;
  --hairline: #E1DACC;
  --hairline-soft: #ECE6D8;
  --sage: #7A8B6F;
  --sage-deep: #5E6F55;
  --sage-faint: #EAEEE4;

  --serif: "Fraunces", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sage-deep); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.column { max-width: 680px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.topbar .date { font-variant-numeric: tabular-nums; }
.topbar .issue { font-style: italic; text-transform: none; letter-spacing: 0.02em; font-weight: 400; }

.masthead {
  text-align: center;
  padding: 36px 0 22px;
}
.masthead .logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.masthead svg { display: block; }
.masthead .brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 56px);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
  line-height: 1;
}
.masthead .tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.primary-nav {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.primary-nav a:hover { color: var(--sage-deep); }
.primary-nav a.is-active { color: var(--sage-deep); }

/* ---------- Hero / page intro ---------- */
.page-intro {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}
.page-intro .kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-intro h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.page-intro .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- Home / Articles grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px 32px;
  padding: 64px 0;
}
.grid .card {
  grid-column: span 4;
}
.grid .card.feature {
  grid-column: span 8;
}
.grid .card.wide {
  grid-column: span 6;
}

.card a.card-link { display: block; }
.card .cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
  margin-bottom: 18px;
}
.card.feature .cover { aspect-ratio: 16 / 10; }
.card .cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s ease;
}
.card a.card-link:hover .cover img { transform: scale(1.025); }

.card .tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.card h2, .card h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.card.feature h2 { font-size: 32px; }
.card h3 { font-size: 22px; }
.card .excerpt {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.card .byline {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.card .byline .by { color: var(--ink-soft); font-weight: 500; }
.card .byline .sep { margin: 0 8px; color: var(--hairline); }

/* ---------- Section divider ---------- */
.section-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0 12px;
  margin: 24px 0 0;
}
.section-rule .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}
.section-rule .line {
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: 0.85;
}

/* ---------- Article body ---------- */
.article-hero {
  padding: 48px 0 0;
}
.article-hero .meta {
  text-align: center;
  margin-bottom: 28px;
}
.article-hero .tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.article-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 18px auto 18px;
  max-width: 880px;
  text-align: center;
}
.article-hero .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
  line-height: 1.5;
}

.byline-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}
.byline-block img.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.byline-block .who {
  font-size: 14px;
  line-height: 1.4;
}
.byline-block .who .name { font-weight: 600; color: var(--ink); }
.byline-block .who .info { color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em; }

.hero-image {
  margin: 0 auto 12px;
  max-width: 1080px;
}
.hero-image figcaption,
.figure figcaption {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.01em;
}

.article-body {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 0 4px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.2em;
  float: left;
  line-height: 0.86;
  padding: 6px 10px 0 0;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.35em; }
.article-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.4em 0 0.7em;
  color: var(--ink);
}
.article-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 1.8em 0 0.6em;
  color: var(--ink);
}
.article-body a { color: var(--ink); border-bottom: 1px solid var(--sage); padding-bottom: 1px; }
.article-body a:hover { color: var(--sage-deep); border-color: var(--sage-deep); }
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.35em; }
.article-body li { margin-bottom: 0.5em; }

.pull-quote {
  margin: 2.6em -20px;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--sage);
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.figure {
  margin: 2.4em auto;
  max-width: 880px;
}
.figure.full { margin-left: calc(50% - 50vw + 16px); margin-right: calc(50% - 50vw + 16px); max-width: none; }

.article-footer-meta {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.author-bio {
  max-width: 680px;
  margin: 48px auto;
  padding: 28px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-bio img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio .name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}
.author-bio .role {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.author-bio p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Related articles ---------- */
.related {
  max-width: 1180px;
  margin: 64px auto 0;
  padding: 48px 32px;
  border-top: 1px solid var(--hairline);
}
.related .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 28px;
  text-align: center;
}
.related .grid { padding: 0; gap: 32px; }
.related .grid .card { grid-column: span 4; }
.related .card .cover { aspect-ratio: 3 / 2; }
.related .card h3 { font-size: 19px; }

/* ---------- About page ---------- */
.about-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.about-section:last-of-type { border-bottom: 0; }
.about-section .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.about-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 38px);
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
  max-width: 720px;
}
.about-section p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
  max-width: 680px;
}
.about-section p.lead {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 32px;
}
.team-grid .person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
  background: var(--paper-warm);
}
.team-grid .person .name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 2px;
}
.team-grid .person .role {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.team-grid .person .bio {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.standards-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.standards-list li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
}
.standards-list li:last-child { border-bottom: 1px solid var(--hairline); }
.standards-list .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--sage-deep);
}
.standards-list .text { color: var(--ink-soft); }
.standards-list strong { font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  padding: 64px 0;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.contact-info .label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  margin: 28px 0 8px;
}
.contact-info .label:first-of-type { margin-top: 24px; }
.contact-info p, .contact-info address {
  font-style: normal;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}
.contact-info a { color: var(--ink); border-bottom: 1px solid var(--sage); }

.map-placeholder {
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  background: var(--sage-faint);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.map-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.55;
}
.map-placeholder::after {
  content: "";
  position: absolute;
  top: 30%; left: 12%; right: 18%;
  height: 6px;
  background: var(--paper-warm);
  transform: rotate(-8deg);
  box-shadow:
    0 80px 0 -2px var(--paper-warm),
    -40px 140px 0 -2px var(--paper-warm);
}
.map-placeholder .pin {
  position: absolute;
  top: 48%; left: 52%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-deep);
  border: 3px solid var(--paper);
  z-index: 2;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.map-placeholder .pin::after {
  content: "Common Hours — 127 Broadway St.";
  position: absolute;
  top: -28px; left: 24px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  font-weight: 600;
}

.contact-form .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  display: block;
  margin: 22px 0 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  border: 1px solid var(--hairline);
  padding: 14px;
  background: var(--paper);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--sage-deep);
}
.contact-form button {
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}
.contact-form button:hover { background: var(--sage-deep); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 96px;
  background: var(--ink);
  color: #CFC9BD;
  padding: 64px 0 28px;
  position: relative;
  z-index: 2;
}
.site-footer a { color: #CFC9BD; }
.site-footer a:hover { color: #FAF7F2; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2E2823;
}
.footer-brand .brand {
  font-family: var(--serif);
  font-size: 30px;
  color: #FAF7F2;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: 10px;
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #9C9588;
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: #FAF7F2;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }

.newsletter p {
  font-size: 14.5px;
  color: #9C9588;
  margin: 0 0 14px;
  line-height: 1.55;
}
.newsletter form { display: flex; border-bottom: 1px solid #4A4338; }
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: #FAF7F2;
}
.newsletter input::placeholder { color: #6B6258; }
.newsletter input:focus { outline: none; }
.newsletter button {
  background: transparent;
  border: 0;
  color: #FAF7F2;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 4px;
  cursor: pointer;
}
.newsletter button:hover { color: var(--sage); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: #807868;
}
.footer-bottom .legal a { margin-left: 16px; }
.footer-bottom .legal a:first-child { margin-left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .wrap { padding: 0 22px; }
  .grid .card,
  .grid .card.feature,
  .grid .card.wide { grid-column: span 6; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .related .grid .card { grid-column: span 6; }
  .pull-quote { margin-left: 0; margin-right: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar { font-size: 10.5px; flex-direction: column; gap: 4px; padding: 8px 0; }
  .masthead { padding: 26px 0 16px; }
  .primary-nav ul { gap: 0; }
  .primary-nav a { padding: 12px 14px; font-size: 11px; letter-spacing: 0.14em; }
  .grid { gap: 36px 24px; padding: 44px 0; }
  .grid .card,
  .grid .card.feature,
  .grid .card.wide { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; line-height: 1.7; }
  .article-body > p:first-of-type::first-letter { font-size: 4em; }
  .pull-quote { font-size: 22px; margin: 1.8em 0; padding-left: 20px; }
  .author-bio { flex-direction: column; gap: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .related .grid .card { grid-column: 1 / -1; }
  .article-hero h1 { font-size: 32px; }
  .map-placeholder .pin::after { font-size: 9px; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

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