/* Cottage at Home — moody heritage, lived-in, warm. Tokens are docs/brand-kit.md law.
   Round-4 panel fixes 2026-08-24: two-tier brass rules, hairline cards (no shadow),
   paper grain, hover life, scrolling mobile nav, landmark restructure (.well),
   unified meta pattern, reflow-safe CTA, immutable-cache-ready assets. */
:root{
  --parchment:#F3EDE2; --paper:#FBF7EE; --ink:#29251E; --umber:#6B6152;
  --moss:#59684D; --clay:#A5643C; --clay-link:#8B5432; --brass:#B08D45;
  --brass-rule:#A1813F; --hearth:#262019; --hearth-cream:#EFE6D3;
  --cream-dim:#CBBFA5; --cream-faint:#B9AC93;
  --hairline:rgba(161,129,63,.30);          /* structural tier */
  --card-edge:rgba(176,141,69,.35);
  --display:"Fraunces","Fraunces Fallback",Georgia,serif;
  --well:1000px; --fs-body:1.0625rem;
  color-scheme:light;
}
@font-face{font-family:"Fraunces";
  src:url("/static/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2026}
@font-face{font-family:"Fraunces Fallback";
  src:local("Georgia"),local("Noto Serif"),local("Times New Roman");
  size-adjust:103%;ascent-override:92%;descent-override:24%;line-gap-override:0%}
*{box-sizing:border-box}
body{margin:0;background:var(--parchment);color:var(--ink);
  font-family:Georgia,'Times New Roman',serif;font-size:var(--fs-body);line-height:1.7;
  min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E")}
main{flex:1 0 auto;width:100%}
main:focus{outline:none}
.well{width:100%;max-width:calc(var(--well) + 2.4rem);margin:0 auto;
  padding:2.6rem 1.2rem}
h1{text-wrap:pretty}
h2,h3{text-wrap:balance}
h1,h2,h3{overflow-wrap:break-word;font-variant-ligatures:no-discretionary-ligatures}
.meta{overflow-wrap:break-word}
.card p,.tags{overflow-wrap:break-word}

/* links: never color-alone */
a{color:var(--clay-link);text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:2px;text-decoration-color:var(--brass-rule)}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:2px solid var(--clay);outline-offset:2px;border-radius:2px}
.masthead a:focus-visible,footer a:focus-visible,.signoff a:focus-visible{
  outline-color:var(--brass)}
.skip{position:absolute;left:-9999px}
.skip:focus{position:fixed;left:.75rem;top:.5rem;z-index:20;display:block;
  padding:.6rem 1.2rem;background:var(--brass);color:var(--hearth);
  outline:2px solid var(--hearth);outline-offset:2px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
  white-space:nowrap}

/* masthead */
.masthead{background:var(--hearth);color:var(--hearth-cream);
  padding:2rem 1.2rem 0;text-align:center}
.brand{margin:0;font-family:var(--display);font-weight:600;font-size:2rem;
  letter-spacing:.01em}
.brand a,.masthead nav a,.card h3 a{text-decoration:none}
.brand a{color:var(--hearth-cream)}
.brand a:hover{color:#fff;text-decoration:underline;
  text-decoration-color:var(--brass);text-decoration-thickness:1px}
.tagline{margin:.3rem 0 1.1rem;color:var(--cream-dim);font-style:italic;font-size:1rem}
.masthead nav{display:flex;flex-wrap:wrap;gap:.2rem 1.5rem;justify-content:center;
  border-top:1px solid rgba(176,141,69,.35);padding:.5rem 0;margin:0 auto;
  max-width:var(--well)}
.masthead nav a{display:inline-block;padding:.55rem 0;color:var(--cream-dim);
  font-family:Verdana,Geneva,sans-serif;font-size:.78rem;text-transform:uppercase;
  letter-spacing:.12em;white-space:nowrap}
.masthead nav a:hover{color:var(--brass);text-decoration:underline;
  text-decoration-color:var(--brass)}
.masthead nav a.on{color:var(--hearth-cream);border-bottom:1px solid var(--brass);
  padding-bottom:2px}

/* hero (index only) */
.hero-band{background:var(--hearth);color:var(--hearth-cream);
  padding:2.2rem 1.2rem 3.2rem;text-align:center}
.hero-band .inner{max-width:var(--well);margin:0 auto}
.hero-band img{width:100%;height:auto;max-height:400px;aspect-ratio:2872/1920;
  object-fit:cover;border-radius:4px;display:block;margin:0 auto 2.75rem;
  border:1px solid rgba(176,141,69,.25)}
.hero-band h1{font-family:var(--display);font-weight:400;
  font-size:clamp(2.1rem,4.6vw,3rem);line-height:1.15;margin:0 0 .55rem}
.hero-band p{color:var(--cream-dim);margin:0;font-size:1.05rem}

/* section labels — one treatment: label, then a hairline to the right edge */
.seclabel{display:flex;align-items:center;gap:.9rem;
  font-family:Verdana,Geneva,sans-serif;font-size:.74rem;font-weight:normal;
  text-transform:uppercase;letter-spacing:.14em;color:var(--moss);margin:0 0 .5rem}
.seclabel::after{content:"";flex:1;height:1px;background:var(--hairline)}
.newnote{color:var(--umber);font-style:italic;margin:0 0 1.4rem;font-size:.95rem}

/* cards — printed page: hairline edge, no shadow, quiet hover life */
.postgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));
  gap:2rem}
.card{background:var(--paper);border:1px solid var(--card-edge);border-radius:4px;
  padding:1.3rem}
.card:hover{border-color:var(--brass)}
.card > a{display:block;overflow:hidden;border-radius:3px}
.card img{width:100%;height:220px;object-fit:cover;display:block}
@media (prefers-reduced-motion: no-preference){
  .card img{transition:transform .45s ease}
  .card:hover img{transform:scale(1.02)}
  .card{transition:border-color .25s ease}
}
.card h3{font-family:var(--display);font-weight:600;font-size:1.25rem;
  line-height:1.35;margin:.2rem 0 .3rem}
.card h3 a{color:var(--ink)}
.card h3 a:hover,.card h3 a:focus-visible{color:var(--clay-link);text-decoration:underline;
  text-decoration-color:var(--brass-rule)}
.card p{margin:.2rem 0;color:var(--umber);font-size:.95rem}
.card .read{margin-top:.7rem}
.card .read a{font-size:.9rem;display:inline-block;padding:.32rem 0;
  text-decoration-color:currentColor}
/* a single LATEST post is a full-width editorial feature (never the related strip) */
main .well > .postgrid .card:only-child{grid-column:1/-1;padding:0;overflow:hidden}
main .well > .postgrid .card:only-child img{height:auto;aspect-ratio:3/2;max-height:460px}
main .well > .postgrid .card:only-child > a{border-radius:0}
main .well > .postgrid .card:only-child > div{padding:1.5rem 1.7rem 1.7rem}
.cat,.cat a,a.cat{font-family:Verdana,Geneva,sans-serif;font-size:.74rem;
  text-transform:uppercase;letter-spacing:.14em;color:var(--moss)}
.cat{margin:.4rem 0 .1rem}
.cat a,a.cat{display:inline-block;padding:.25rem 0;text-decoration:none;
  border-bottom:1px solid var(--brass-rule)}
.cat a:hover,a.cat:hover,.cat a:focus-visible,a.cat:focus-visible{
  color:var(--clay-link);border-bottom-color:var(--clay-link)}
.cat .catdate{color:var(--umber);border:0}

/* article + pages */
.post{max-width:720px;margin:0 auto;background:var(--paper);
  border:1px solid var(--card-edge);border-radius:4px;padding:2.6rem;
  overflow:hidden}
.post h1{font-family:var(--display);font-weight:600;line-height:1.25;
  font-size:2.05rem;margin:.5rem 0 .9rem}
.meta{font-family:Verdana,Geneva,sans-serif;font-size:.72rem;text-transform:uppercase;
  letter-spacing:.1em;color:var(--umber);margin:0 0 .4rem}
.hero{width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:4px;
  margin:.9rem 0 1.5rem}
.body{max-width:34em;margin:0}
.body p,.body li{overflow-wrap:break-word}
.body img{display:block;max-width:100%;height:auto;border-radius:4px;
  margin:2.6em auto}
.body h2{font-family:var(--display);font-weight:600;color:var(--moss);
  margin-top:1.7em;font-size:1.4rem}
.body blockquote{border-left:2px solid var(--brass-rule);margin:1.8em 0;
  padding:.1em 0 .1em 1.2em;color:var(--umber);font-style:italic}
.body pre,.body table{display:block;max-width:100%;overflow-x:auto}
.body table{border-collapse:collapse;font-size:.92rem}
/* drop cap: articles only, first paragraph only, never blockquotes or pages */
.article-flow > p:first-of-type::first-letter{font-family:var(--display);float:left;
  font-size:3.3rem;line-height:.9;padding:.28rem .5rem 0 0;color:var(--moss)}
.tags{border-top:1px solid var(--hairline);margin-top:2.6rem;padding-top:1rem;
  line-height:2.2}
.tags .filed{font-family:Verdana,Geneva,sans-serif;font-size:.72rem;
  text-transform:uppercase;letter-spacing:.12em;color:var(--umber);margin-right:.6rem}
.tags a{display:inline-block;padding:.15rem 0;margin-right:.8rem;
  font-family:Verdana,Geneva,sans-serif;font-size:.74rem;text-transform:uppercase;
  letter-spacing:.12em;color:var(--moss);text-decoration:none;
  border-bottom:1px solid var(--brass-rule)}
.tags a:hover,.tags a:focus-visible{color:var(--clay-link);
  border-bottom-color:var(--clay-link)}

/* after-article: related + sign-off */
.after{max-width:720px;margin:2.4rem auto 0}
.after .postgrid{gap:1.4rem}
.after .card img{height:170px}
.signoff{max-width:720px;margin:3.5rem auto 0;background:var(--hearth);
  color:var(--hearth-cream);border-radius:4px;padding:1.7rem 1.8rem;text-align:center}
.signoff p{margin:.3rem 0;color:var(--cream-dim)}
.signoff .sig{font-family:var(--display);font-size:1.25rem;color:var(--hearth-cream)}
.signoff a{color:var(--brass);text-decoration-color:var(--brass)}
.ctaline{margin-top:1rem}
.ctaline a{display:inline-block;max-width:100%;border:1px solid var(--brass);
  border-radius:3px;padding:.55rem 1.2rem;color:var(--brass);text-decoration:none}
.ctaline a:hover,.ctaline a:focus-visible{background:var(--brass);color:var(--hearth);
  text-decoration:none}

/* category pages */
main .well>h1{font-family:var(--display);font-weight:600;font-size:1.75rem;
  margin:0 0 .35rem}
.catdek{color:var(--umber);margin:0 0 1.2rem;max-width:34em}
.catrow{margin-top:2.4rem;color:var(--umber);font-size:.9rem}
.catrow a{display:inline-block;padding:.25rem 0;margin-right:1rem}

/* footer — the site's other map */
footer{flex-shrink:0;background:var(--hearth);color:var(--cream-faint);margin-top:3rem;
  padding:1.7rem 1.2rem 1.5rem;text-align:center;font-size:.85rem}
footer a{display:inline-block;padding:.2rem 0;color:var(--cream-dim);
  text-decoration:underline;text-decoration-color:rgba(176,141,69,.6)}
footer a:hover{color:var(--brass)}
.fnav{display:flex;flex-wrap:wrap;justify-content:center;gap:.15rem 1.4rem;
  margin-bottom:.8rem}
.fnav a{font-family:Verdana,Geneva,sans-serif;font-size:.72rem;
  text-transform:uppercase;letter-spacing:.1em;text-decoration:none;white-space:nowrap}
.fnav a:hover{text-decoration:underline;text-decoration-color:var(--brass)}
footer .legal{margin:0;line-height:2}

@media (max-width:37.5em){
  .post{padding:1.5rem 1.2rem}
  .brand{font-size:1.7rem}
  /* one scrolling row: the fold belongs to the photograph, not the menu */
  .masthead nav{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;
    gap:0 1.4rem;padding:.45rem .2rem;scrollbar-width:none;
    -webkit-overflow-scrolling:touch}
  .masthead nav::-webkit-scrollbar{display:none}
  .hero-band{padding:1.4rem 1.2rem 2.2rem}
  main .well > .postgrid .card:only-child > div{padding:1.1rem 1.2rem 1.3rem}
}

/* round-5 surgical additions */
.nb{white-space:nowrap}
.hero-band .ctaline{margin-top:1.3rem}
.aboutline{margin-top:.7rem;font-size:.85rem}
.aboutline a{color:var(--cream-dim)}
@media (max-width:37.5em){
  .masthead nav{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 2.4rem),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 2.4rem),transparent)}
  .meta,.cat{font-size:.68rem;letter-spacing:.08em}
}

/* ============================================================================
   Motion layer (Fable creative pass 2026-08-24) — heritage-quiet, CSS-only,
   triple-gated: @supports for scroll timelines, reduced-motion for everything,
   and base states that are fully visible/readable with neither.
   ========================================================================== */
@media screen and (prefers-reduced-motion: no-preference){
  html{scroll-behavior:smooth}

  /* Cross-document view transitions: the clicked photograph carries the reader
     into the article; chrome stays put so only the content breathes. */
  @view-transition{navigation:auto}
  .masthead{view-transition-name:masthead}
  footer{view-transition-name:sitefooter}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.4s}
  ::view-transition-group(*){animation-duration:.45s;
    animation-timing-function:cubic-bezier(.33,0,.2,1)}
  ::view-transition-group(masthead),::view-transition-group(sitefooter){animation:none}

  /* One-time hero settle on load — the room comes into focus, nothing jumps. */
  .hero-band .inner{animation:settle .8s cubic-bezier(.25,0,.2,1) both}
  @keyframes settle{from{opacity:.001;transform:translateY(10px)}to{opacity:1;transform:none}}

  /* Micro-transitions — glints, not gestures. */
  a,.masthead nav a,.cat a,a.cat,.tags a{transition:color .25s ease,
    border-color .25s ease,text-decoration-color .25s ease}
  .ctaline a{transition:background-color .3s ease,color .3s ease}

  /* Scroll-driven reveals — supported browsers only; base state is the final
     state, so nothing is ever hidden where timelines don't exist. */
  @supports (animation-timeline: view()) and (animation-range: entry 0%){
    .card,.seclabel,.newnote,.signoff,.catrow{
      animation:rise .7s cubic-bezier(.25,0,.2,1) both;
      animation-timeline:view();animation-range:entry 0% entry 55%}
  }
  @keyframes rise{from{opacity:.001;transform:translateY(14px)}to{opacity:1;transform:none}}
}

@media (prefers-reduced-motion: reduce){
  .card a img,.hero{view-transition-name:none !important}
}
