/* The French Country Club — public site styles */

:root {
  --linen: #f7f2e9;
  --linen-deep: #efe6d6;
  --paper: #fbf8f2;
  --ink: #2b2925;
  --ink-soft: #5a554c;
  --ink-faint: #8a8377;
  --terracotta: #a65d3c;
  --terracotta-deep: #8a4a2f;
  --rule: #ddd3c2;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
}

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

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--linen);
  padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.masthead-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 14px; padding-bottom: 8px;
}
.masthead-tag {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.wordmark {
  text-align: center; text-decoration: none; display: block;
}
.wordmark-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.05;
}
.wordmark-tagline {
  display: block; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-soft);
  margin-top: 2px;
}
.masthead-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 14px; height: 9px; margin-right: 8px; vertical-align: -1px;
  border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2.25px; border-top: 1.5px solid currentColor; }

.nav { border-top: 1px solid var(--rule); }
.nav ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0 28px;
  max-width: var(--wrap);
}
.nav a {
  display: block; padding: 11px 0; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--terracotta); border-bottom-color: var(--terracotta); }

@media (max-width: 760px) {
  .masthead-top { grid-template-columns: 1fr auto; }
  .masthead-tag { display: none; }
  .wordmark { text-align: left; }
  .wordmark-name { font-size: clamp(24px, 7vw, 32px); }
  .wordmark-tagline { font-size: 14px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav li + li a { border-top: 1px solid var(--rule); }
  .nav a { padding: 13px 0; border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; }
}

/* ---------- Generic bits ---------- */

main { min-height: 60vh; }
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta); text-decoration: none;
}
a.kicker:hover { text-decoration: underline; }
.meta { font-size: 13px; color: var(--ink-faint); letter-spacing: .03em; }
.meta .dot { margin: 0 .5em; }

.section { padding-top: clamp(44px, 7vw, 84px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head a { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid currentColor; text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.btn:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }

.ph { background: var(--linen-deep); }
.ratio { position: relative; overflow: hidden; background: var(--linen-deep); }
.ratio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ratio.r-3x2 { aspect-ratio: 3 / 2; }
.ratio.r-4x5 { aspect-ratio: 4 / 5; }
.ratio.r-1x1 { aspect-ratio: 1 / 1; }
a:hover .ratio img { transform: scale(1.03); }

/* ---------- Hero ---------- */

.hero { position: relative; color: #fff; background: #2b2925; }
.hero-media { position: relative; height: min(82vh, 760px); min-height: 420px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 20, 17, .78) 0%, rgba(22, 20, 17, .25) 45%, rgba(22, 20, 17, 0) 70%);
}
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(28px, 6vw, 64px);
}
.hero-text .kicker { color: #f2d3c2; }
.hero h1 { font-size: clamp(36px, 6.2vw, 76px); max-width: 15ch; margin: 10px 0 12px; }
.hero h1 a { text-decoration: none; }
.hero .dek { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 25px); font-style: italic; max-width: 40ch; margin: 0 0 22px; color: #f4efe6; line-height: 1.35; }
.hero .btn { color: #fff; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.card { text-decoration: none; display: block; }
.card .ratio { margin-bottom: 16px; }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 8px 0 8px; }
.card:hover h3 { color: var(--terracotta-deep); }
.card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Category tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: block; text-decoration: none; color: #fff; overflow: hidden; }
.tile .ratio { aspect-ratio: 3 / 4; }
.tile .ratio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,20,17,.72), rgba(22,20,17,0) 60%); }
.tile-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.tile-text strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.tile-text span { display: block; font-size: 13px; line-height: 1.4; margin-top: 4px; color: #efe7da; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .ratio { aspect-ratio: 1 / 1; }
  .tile-text strong { font-size: 21px; }
  .tile-text span { display: none; }
}

/* ---------- Feature block ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0; background: var(--paper); text-decoration: none; border: 1px solid var(--rule); }
.feature .ratio { aspect-ratio: auto; min-height: 460px; }
.feature-text { padding: clamp(24px, 5vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.feature-text h2 { font-size: clamp(32px, 4vw, 54px); margin: 12px 0 14px; }
.feature-text .dek { font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink-soft); margin: 0 0 18px; line-height: 1.4; }
.feature:hover h2 { color: var(--terracotta-deep); }
@media (max-width: 800px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .ratio { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Quote ---------- */

.pull { text-align: center; padding: clamp(56px, 9vw, 110px) var(--gutter) 0; max-width: 900px; margin: 0 auto; }
.pull blockquote { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); line-height: 1.22; font-style: italic; }
.pull blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--terracotta); margin-bottom: 12px; font-style: normal; }
.pull cite { display: block; margin-top: 18px; font-style: normal; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Photo strip ---------- */

.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.strip a { display: block; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Page headers ---------- */

.page-head { text-align: center; padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); }
.page-head p { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-soft); max-width: 46ch; margin: 12px auto 0; line-height: 1.4; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.filters a { display: block; padding: 7px 15px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--linen); }

.empty { text-align: center; color: var(--ink-faint); font-style: italic; padding: 40px 0; }

/* ---------- Article ---------- */

.article-cover { margin: 0; }
.article-cover .img-wrap { height: min(74vh, 700px); min-height: 280px; background: var(--linen-deep); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover figcaption, .md-figure figcaption { font-size: 13px; color: var(--ink-faint); padding: 8px var(--gutter) 0; }
.md-figure figcaption { padding: 8px 0 0; }
.figcap .credit, .md-figure .credit { color: var(--ink-faint); }
.figcap .cap + .credit::before, .md-figure .cap + .credit::before { content: "· "; }

.article-head { max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.article-head h1 { font-size: clamp(38px, 6vw, 68px); margin: 14px 0 14px; }
.article-head .dek { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 27px); color: var(--ink-soft); line-height: 1.35; margin: 0 0 18px; }
.article-head .meta { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; display: inline-block; min-width: 60%; }

.prose { max-width: 680px; margin: 0 auto; padding: clamp(28px, 4vw, 44px) var(--gutter) 0; font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: clamp(23px, 2.4vw, 27px); margin: 1.4em 0 .4em; font-style: italic; }
.prose a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--terracotta); }
.prose blockquote {
  margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--terracotta);
  font-family: var(--serif); font-style: italic; font-size: 1.35em; line-height: 1.4; color: var(--ink);
}
.prose blockquote p { margin: 0 0 .5em; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 5.1em; line-height: .82; font-weight: 500;
  padding: .06em .1em 0 0; color: var(--terracotta);
}
.md-figure { margin: 2em calc(-1 * var(--gutter)); max-width: none; }
.md-figure figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 900px) { .md-figure { margin-left: -120px; margin-right: -120px; } }
.md-figure img { width: 100%; height: auto; }

.article-foot { max-width: 680px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.byline-box { border-top: 1px solid var(--rule); padding-top: 18px; font-size: 15px; color: var(--ink-soft); }
.byline-box a { color: var(--terracotta-deep); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 48px; }
.prevnext a { display: block; background: var(--paper); padding: 22px 24px; text-decoration: none; min-width: 0; }
.prevnext a:hover strong { color: var(--terracotta-deep); }
.prevnext .next { text-align: right; }
.prevnext span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.prevnext strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin-top: 4px; }
.prevnext .blank { background: var(--paper); }
@media (max-width: 600px) {
  .prevnext { grid-template-columns: minmax(0, 1fr); }
  .prevnext .next { text-align: left; }
}

/* ---------- Gallery ---------- */

.masonry { columns: 3 300px; column-gap: 14px; }
.masonry button {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; border: 0; background: var(--linen-deep);
  cursor: zoom-in; break-inside: avoid; position: relative;
}
.masonry img { width: 100%; height: auto; }
.masonry .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: left;
  color: #fff; font-size: 14px; background: linear-gradient(to top, rgba(22,20,17,.7), transparent); opacity: 0; transition: opacity .25s; }
.masonry button:hover .g-cap, .masonry button:focus-visible .g-cap { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 18, 16, .95); color: #f4efe6;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 20px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; min-height: 0; flex: 1; justify-content: center; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; font-size: 15px; margin-top: 12px; max-width: 70ch; }
.lightbox figcaption small { display: block; color: #b8afa1; font-size: 13px; margin-top: 3px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 20px; font-size: 13px; letter-spacing: .12em; color: #b8afa1; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox img { max-height: calc(100vh - 200px); }
  .lightbox { padding-bottom: 76px; }
}

/* ---------- About ---------- */

.about-photo { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.about-photo img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.about-photo figcaption { font-size: 13px; color: var(--ink-faint); padding-top: 8px; }
.write-in { max-width: 680px; margin: 40px auto 0; padding: 28px var(--gutter); text-align: center; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.write-in h2 { font-size: 30px; margin-bottom: 8px; }
.write-in a { color: var(--terracotta-deep); }

/* ---------- Credits ---------- */

.credits { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.credits li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.credits .ratio { aspect-ratio: 1; }
.credits h3 { font-size: 22px; margin-bottom: 4px; }
.credits p { margin: 0; font-size: 15px; color: var(--ink-soft); overflow-wrap: anywhere; }
.credits a { color: var(--terracotta-deep); }
@media (max-width: 500px) { .credits li { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; } }

/* ---------- Footer ---------- */

.footer { margin-top: clamp(64px, 10vw, 120px); background: var(--ink); color: #d9d1c3; padding: 56px 0 28px; font-size: 15px; }
.footer a { color: #f4efe6; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer .f-name { font-family: var(--serif); font-size: 30px; color: #fff; line-height: 1.1; margin: 0 0 4px; }
.footer .f-tag { font-family: var(--serif); font-style: italic; font-size: 18px; margin: 0 0 14px; color: #cfc6b6; }
.footer h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a79e8f; margin: 6px 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 6px; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid #47433c; margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #a79e8f; }
.footer-bottom a { color: #cfc6b6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.loading { text-align: center; padding: 120px 0; color: var(--ink-faint); font-family: var(--serif); font-style: italic; font-size: 22px; }

/* ---------- Maintenance mode ---------- */

body.maintenance .nav, body.maintenance .menu-toggle, body.maintenance .footer, body.maintenance .masthead-tag { display: none; }
body.maintenance .masthead { position: static; }
.maintenance-note { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.maint-contact { font-style: normal !important; font-family: var(--sans) !important; font-size: 16px !important; }
.maint-contact a { color: var(--terracotta-deep); }

.home-top { height: clamp(8px, 2vw, 16px); }
