@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/dm-serif-display-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --cream: #f8f3eb;
  --card: #ffffff;
  --line: #ece4d8;
  --ink: #2c1f19;
  --ink-soft: #6b5a50;
  --accent: #a3481c;
  --accent-hover: #8a3c16;
  --dark: #3b2a22;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(59, 42, 34, .06), 0 8px 24px rgba(59, 42, 34, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 14px; }
.sample-note { margin: 0; background: var(--dark); color: #fff7ea; text-align: center; font-size: .85rem; padding: 6px 16px; }

/* Header */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--serif); font-size: 1.55rem; color: var(--dark); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; }
nav a:hover { color: var(--accent); }
nav .nav-call { color: var(--accent); font-weight: 600; }

/* Buttons and links */
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 999px; transition: background-color .15s ease, transform .15s ease; }
.button:hover { background: var(--accent-hover); color: #fff; }
.button:active { transform: translateY(1px); }
.text-link { font-weight: 600; }

/* Home */
.hero { padding: 64px 0 56px; }
.hero-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; margin: 0 0 28px; }
.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 0; }
.hours { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-soft); }

.section { padding: 32px 0 80px; }
.section-tight { padding-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: 56px 0 32px; }
.page-head .lead { margin-bottom: 0; }
.empty { color: var(--ink-soft); }

/* Post cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(59, 42, 34, .07), 0 14px 32px rgba(59, 42, 34, .1); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-photo { display: block; aspect-ratio: 16 / 10; background: var(--line); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #efe3d2, #e4d2bb); }
.card-text { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.card-text time { font-size: .85rem; color: var(--ink-soft); }
.card-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; color: var(--dark); }
.card-summary { color: var(--ink-soft); }
.card-more { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; }
.card-link:hover .card-more { text-decoration: underline; text-underline-offset: 3px; }

/* Single post */
.post { padding: 40px 0 80px; }
.back { margin: 0 0 24px; font-weight: 600; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; }
.post-date { color: var(--ink-soft); margin: 0 0 28px; }
.post-photo { margin: 0 0 36px; }
.post-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { font-size: 1.125rem; }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.4em; }
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body .table-wrap { margin: 0 0 1.1em; }
.post-body li { margin-bottom: .35em; }
.post-body blockquote { border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; color: var(--ink-soft); font-style: italic; }
.post-body img { border-radius: 10px; }
.post-body .post-figure { margin: 1.6em 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body code { background: var(--line); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.post-body pre { background: var(--dark); color: #fff7ea; padding: 16px; border-radius: 10px; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; }
.post-body table { border-collapse: collapse; width: 100%; background: var(--card); }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-cta { margin-top: 40px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-cta p { margin: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--dark); }

/* Footer */
.site-footer { background: var(--dark); color: #f3e9dc; padding: 40px 0; }
.site-footer a { color: #ffd9bf; }
.site-footer a:hover { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.footer-small { font-size: .9rem; color: #d9cbbb; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero-row { grid-template-columns: 1fr; gap: 32px; }
  nav { gap: 16px; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
