/* Olive & Limestone — south Garda wellness logbook
   Palette: ivory + sage + warm sand
   Type: Fraunces (display, italic) + Public Sans (body) */

:root {
  --ivory: #F4EFE6;
  --ivory-deep: #ECE5D2;
  --paper: #FBF8F1;
  --moss: #2A2E25;
  --sage: #8FA386;
  --sage-deep: #5C6354;
  --sand: #C4A57B;
  --sand-deep: #A6864F;
  --line: #D4CCB6;
  --measure: 64ch;
  --gutter: clamp(1.25rem, 2.5vw, 2rem);
  --rule: 1px solid var(--sage);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--moss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga';
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
a:hover { color: var(--sand-deep); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--moss);
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 2.8rem 0 1rem; }
h3 { font-size: 1.22rem; margin: 1.8rem 0 0.6rem; font-weight: 600; }

p { margin-bottom: 1.15rem; }

/* === Layout frame === */
.frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* === Header / shore-nav === */
.shore-nav {
  background: var(--paper);
  border-bottom: var(--rule);
  padding: 1.05rem 0 0.95rem;
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(6px);
}
.shore-nav .frame {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.masthead-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.masthead-mark:hover { color: var(--sage-deep); }
.masthead-mark .ampersand {
  color: var(--sand-deep);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 1.4rem 1.6rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: baseline;
}
.nav-links a {
  color: var(--moss);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.nav-links a:hover,
.nav-links a.current {
  border-bottom-color: var(--sand);
  color: var(--moss);
}

/* === Hero / tepid-banner === */
.tepid-banner {
  background:
    radial-gradient(120% 80% at 80% 30%, rgba(196, 165, 123, 0.15) 0%, transparent 60%),
    linear-gradient(165deg, #ECE5D2 0%, #D7CCB1 60%, #C8B894 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.2rem);
  border-bottom: var(--rule);
}
.tepid-banner .eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.tepid-banner h1 { max-width: 18ch; margin-bottom: 1.1rem; }
.tepid-banner .dek {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--sage-deep);
  max-width: 52ch;
  line-height: 1.55;
}

/* === Intro essay block on home === */
.intro-essay {
  padding: 3.5rem 0 1rem;
  border-bottom: 1px dashed var(--line);
}
.intro-essay .frame { max-width: 720px; }
.intro-essay p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--moss);
  margin-bottom: 1.1rem;
}
.intro-essay p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--sage-deep);
}
.intro-signature {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--sage-deep);
  margin-top: 1.4rem;
  font-size: 1rem;
}

/* === Entries grid (homepage cards) === */
.entries-section { padding: 3.5rem 0 1rem; }
.entries-label {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  margin-bottom: 2.2rem;
  font-weight: 600;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 3rem 1.8rem;
}

.entry-card { display: flex; flex-direction: column; }
.entry-card .entry-image {
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}
.entry-card .entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.entry-card:hover .entry-image img { transform: scale(1.04); }
.entry-card .entry-cluster {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sand-deep);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.entry-card .entry-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.28;
  margin: 0 0 0.6rem;
}
.entry-card .entry-title a {
  color: var(--moss);
  text-decoration: none;
}
.entry-card .entry-title a:hover {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--sand);
}
.entry-card .entry-excerpt {
  font-size: 0.95rem;
  color: var(--sage-deep);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.entry-card .entry-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-deep);
  font-weight: 500;
  margin-top: auto;
}
.entry-card .entry-meta .meta-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--sand);
  border-radius: 50%;
  margin: 0 0.55rem 0.18rem;
  vertical-align: middle;
}

/* === Field rule (decorative divider) === */
.field-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 25%, var(--line) 75%, transparent 100%);
  margin: 4rem 0;
}

/* === Article reading frame === */
.logbook-frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 4rem;
}
.logbook-frame .crumbs {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage-deep);
  margin-bottom: 2.5rem;
}
.logbook-frame .crumbs a { color: var(--sage-deep); text-decoration: none; }
.logbook-frame .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.logbook-frame .crumbs .crumb-sep { margin: 0 0.55rem; color: var(--sand); }

.article-hero {
  padding: 0 0 2.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.article-hero .cluster-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sand-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin-bottom: 1.1rem;
  line-height: 1.18;
}
.article-hero .dek {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--sage-deep);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 56ch;
}
.article-hero .keeper-byline {
  font-size: 0.82rem;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2rem;
}
.article-hero .keeper-byline span + span::before {
  content: "·";
  margin-right: 1.2rem;
  color: var(--sand);
}

/* === Article content === */
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-content h2 { font-size: 1.55rem; margin-top: 3rem; }
.article-content h3 { font-size: 1.2rem; margin-top: 2rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.4rem; }
.article-content li { margin-bottom: 0.45rem; }
.article-content strong { color: var(--moss); font-weight: 600; }
.article-content em { font-style: italic; }

/* TOC — required class */
.toc {
  background: var(--paper);
  border-left: 3px solid var(--sand);
  padding: 1.4rem 1.7rem;
  margin: 2.5rem 0;
}
.toc-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--sage-deep);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}
.toc li {
  margin-bottom: 0.4rem;
  padding-left: 1.85rem;
  position: relative;
  counter-increment: toc-counter;
  font-size: 0.96rem;
}
.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--sand-deep);
  font-size: 0.85rem;
  font-weight: 600;
}
.toc a { color: var(--moss); text-decoration: none; }
.toc a:hover {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--sand);
}

/* Info box (validator-required) */
.info-box {
  background: var(--ivory-deep);
  padding: 1.5rem 1.7rem;
  margin: 2.2rem 0;
  position: relative;
}
.info-box .info-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--sage-deep);
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
  font-weight: 500;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box ul { margin-bottom: 0; }

/* Author note (validator-required) */
.author-note {
  border-left: 3px solid var(--sage);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 2.2rem 0;
  color: var(--sage-deep);
}
.author-note::before {
  content: "Chiara's note —";
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--sand-deep);
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-family: 'Public Sans', sans-serif;
}
.author-note p {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}
.author-note p:last-child { margin-bottom: 0; }

/* Price table (validator-required) */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.price-table caption {
  text-align: left;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--sage-deep);
  padding-bottom: 0.7rem;
  font-size: 0.95rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table thead th {
  font-family: 'Public Sans', sans-serif;
  font-weight: 600;
  background: var(--ivory-deep);
  border-bottom: 2px solid var(--sage);
  color: var(--moss);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-table tbody tr:hover { background: var(--paper); }

/* Blockquote */
.article-content blockquote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  line-height: 1.45;
  color: var(--sage-deep);
  border-left: 0;
  padding: 1rem 0;
  margin: 2.8rem 0;
  text-align: center;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.article-content blockquote::before,
.article-content blockquote::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--sand);
  margin: 0 auto;
}
.article-content blockquote::before { margin-bottom: 1.2rem; }
.article-content blockquote::after { margin-top: 1.2rem; }

/* Figures */
.article-content figure { margin: 2.6rem 0; }
.article-content figure img { width: 100%; height: auto; display: block; }
.article-content figcaption {
  font-size: 0.86rem;
  color: var(--sage-deep);
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
  margin-top: 0.7rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--sand);
  line-height: 1.45;
}

/* Related articles */
.related-articles {
  margin: 4rem 0 0;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}
.related-articles .relmark {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage-deep);
  margin-bottom: 1.8rem;
  font-weight: 600;
}
.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.related-articles li a {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--moss);
  text-decoration: none;
  line-height: 1.32;
  border-top: 2px solid var(--sand);
  padding-top: 0.7rem;
}
.related-articles li a:hover { color: var(--sage-deep); }
.related-articles li small {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sand-deep);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* === Keeper page (about) === */
.keeper-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 4rem;
}
.keeper-page .keeper-portrait {
  width: 220px;
  height: 270px;
  background: var(--ivory-deep);
  margin: 0 auto 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.keeper-page .keeper-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.keeper-page h1 {
  text-align: center;
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}
.keeper-page .keeper-tagline {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--sage-deep);
  font-size: 1.18rem;
  margin-bottom: 3rem;
  line-height: 1.5;
}
.keeper-page p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
}
.keeper-page h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  text-align: left;
}
.keeper-page .keeper-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  width: 80px;
  margin: 2.5rem auto;
}
.keeper-page ul {
  margin: 0.5rem 0 1.5rem 1.4rem;
}
.keeper-page ul li { margin-bottom: 0.45rem; line-height: 1.6; }

/* === Footer / shore-footer === */
.shore-footer {
  background: var(--paper);
  border-top: var(--rule);
  padding: 2.6rem 0 3rem;
  margin-top: 4rem;
}
.shore-footer .frame {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 760px;
}
.footer-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--moss);
}
.footer-mark .ampersand { color: var(--sand-deep); }
.footer-tagline {
  font-size: 0.95rem;
  color: var(--sage-deep);
  line-height: 1.5;
  max-width: 50ch;
}
.footer-baseline {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--sage-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}
.footer-baseline .footer-sep {
  margin: 0 0.65rem;
  color: var(--sand);
}
.footer-baseline .entry-year {
  color: var(--moss);
  font-weight: 500;
}

/* === Mobile === */
@media (max-width: 760px) {
  html { font-size: 16px; }
  .shore-nav { padding: 0.85rem 0; }
  .shore-nav .frame { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .nav-links { gap: 0.95rem 1.1rem; }
  .nav-links a { font-size: 0.74rem; }
  .tepid-banner { padding: 2.8rem 0 2.4rem; }
  .entries-grid { gap: 2.4rem 1.4rem; }
  .logbook-frame { padding: 2.5rem var(--gutter) 3rem; }
  .article-content blockquote { font-size: 1.12rem; margin: 2rem 0; }
  .keeper-page { padding: 2.5rem var(--gutter) 3rem; }
  .keeper-page .keeper-portrait { width: 180px; height: 220px; }
  .article-content figure { margin: 2rem 0; }
}

/* Print-friendly */
@media print {
  .shore-nav, .shore-footer, .related-articles { display: none; }
  body { background: white; color: black; }
  .article-content { font-size: 11pt; line-height: 1.5; }
}
