/* ==========================================================================
   COTTAGECORE — one page. Loaded on a/cottagecore.html.

   Founder, 2026-09-26: the page is Annie's Claude artifact, shell excepted.
   A warm cream ground, faint gingham, a sparse scatter of wildflowers
   (Annie, same day: the artifact's tile was too busy; this one holds four
   flowers and four stems per 240px and must never grow denser), a tilted
   linen cloth for the title, then rounded panels for the record. Nothing
   moves; there is no shadow harder than an overcast morning. The shell
   (rail, top bar, community drawer) is never restyled: every rule here is
   scoped to .cc-hero or .cc-rec.

   Colour (muted pastel, SUPPORTED; the values are ours), in this order so
   the swatch row reads the palette:
   ink #443B31 · cream #FBF7EF · rose #E1C7C6 · rose2 #DAB9BB
   linen #F7F0E3 · berry #8A555C · sage #54664D · bark #5E5348
   ========================================================================== */
@font-face {
  font-family: "Caveat CC";
  src: url("fonts/caveat.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Vollkorn CC";
  src: url("fonts/vollkorn.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Vollkorn CC";
  src: url("fonts/vollkorn-italic.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

.cc-page {
  --cc-ink: #443B31;
  --cc-cream: #FBF7EF;
  --cc-rose: #E1C7C6;
  --cc-rose2: #DAB9BB;
  --cc-linen: #F7F0E3;
  --cc-berry: #8A555C;
  --cc-sage: #54664D;
  --cc-bark: #5E5348;
  --cc-hand: "Caveat CC", "Bradley Hand", "Segoe Script", cursive;
  --cc-serif: "Vollkorn CC", Georgia, "Times New Roman", serif;
  background: var(--paper); /* shell mat; the room ground lives on main */
}

/* THE GROUND. Cream, a sparse wildflower tile (4 flowers + 4 stems per
   240px; thin it, never thicken it), and faint gingham beneath. */
.cc-page main {
  position: relative;
  color: var(--cc-ink);
  background-color: var(--cc-cream);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22240%22%20height=%22240%22%3E%3Cellipse%20cx=%22128%22%20cy=%22161%22%20rx=%222.75%22%20ry=%225%22%20fill=%22%238A555C%22%20transform=%22rotate(0%20128%20166)%22/%3E%3Cellipse%20cx=%22128%22%20cy=%22161%22%20rx=%222.75%22%20ry=%225%22%20fill=%22%238A555C%22%20transform=%22rotate(72%20128%20166)%22/%3E%3Cellipse%20cx=%22128%22%20cy=%22161%22%20rx=%222.75%22%20ry=%225%22%20fill=%22%238A555C%22%20transform=%22rotate(144%20128%20166)%22/%3E%3Cellipse%20cx=%22128%22%20cy=%22161%22%20rx=%222.75%22%20ry=%225%22%20fill=%22%238A555C%22%20transform=%22rotate(216%20128%20166)%22/%3E%3Cellipse%20cx=%22128%22%20cy=%22161%22%20rx=%222.75%22%20ry=%225%22%20fill=%22%238A555C%22%20transform=%22rotate(288%20128%20166)%22/%3E%3Ccircle%20cx=%22128%22%20cy=%22166%22%20r=%222.25%22%20fill=%22%23F7F0E3%22/%3E%3Cpath%20d=%22M57%20183%20q4%20-8%2010%20-10%22%20stroke=%22%2354664D%22%20stroke-width=%221.3%22%20fill=%22none%22/%3E%3Cpath%20d=%22M53%20190%20q4%20-8%2010%20-10%22%20stroke=%22%2354664D%22%20stroke-width=%221.3%22%20fill=%22none%22/%3E%3Cellipse%20cx=%2238%22%20cy=%2237%22%20rx=%223.3%22%20ry=%226%22%20fill=%22%23E1C7C6%22%20transform=%22rotate(0%2038%2043)%22/%3E%3Cellipse%20cx=%2238%22%20cy=%2237%22%20rx=%223.3%22%20ry=%226%22%20fill=%22%23E1C7C6%22%20transform=%22rotate(72%2038%2043)%22/%3E%3Cellipse%20cx=%2238%22%20cy=%2237%22%20rx=%223.3%22%20ry=%226%22%20fill=%22%23E1C7C6%22%20transform=%22rotate(144%2038%2043)%22/%3E%3Cellipse%20cx=%2238%22%20cy=%2237%22%20rx=%223.3%22%20ry=%226%22%20fill=%22%23E1C7C6%22%20transform=%22rotate(216%2038%2043)%22/%3E%3Cellipse%20cx=%2238%22%20cy=%2237%22%20rx=%223.3%22%20ry=%226%22%20fill=%22%23E1C7C6%22%20transform=%22rotate(288%2038%2043)%22/%3E%3Ccircle%20cx=%2238%22%20cy=%2243%22%20r=%222.7%22%20fill=%22%23F7F0E3%22/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, rgba(218, 185, 187, 0.45) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(90deg, rgba(218, 185, 187, 0.45) 0 16px, transparent 16px 32px);
  background-size: 240px 240px, auto, auto;
}

/* ---- shared register: both roots, nothing outside them ---------------- */
.cc-hero, .cc-rec {
  font: 400 18px/1.7 var(--cc-serif);
  color: var(--cc-ink);
  font-synthesis: weight style;
}
.cc-hero a, .cc-rec a { color: var(--cc-berry); text-decoration-style: wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cc-hero a:hover, .cc-rec a:hover { color: var(--cc-sage); }
.cc-hero :focus-visible, .cc-rec :focus-visible { outline: 3px dashed var(--cc-sage); outline-offset: 4px; }
.cc-hand { font-family: var(--cc-hand); }

/* ---- hero: two sprigs and a tilted cloth ------------------------------- */
.cc-hero { position: relative; z-index: 1; text-align: center; padding: clamp(50px, 9vw, 110px) 16px clamp(40px, 6vw, 70px); }
/* The daylight wash: warm light from the top-left. The artifact fixed it to
   the viewport; here it belongs to the hero alone. */
.cc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 6% 0%, rgba(255, 246, 220, 0.85), rgba(255, 246, 220, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.cc-hero > * { position: relative; z-index: 1; }
.cc-cloth {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--cc-linen);
  padding: 26px clamp(20px, 5vw, 60px) 30px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(94, 83, 72, 0.18);
  outline: 2px dashed var(--cc-rose2);
  outline-offset: -12px;
  transform: rotate(-1.2deg);
}
.cc-h1 { margin: 0; font-family: var(--cc-hand); font-weight: 700; font-size: clamp(76px, 15vw, 170px); line-height: 0.9; color: var(--cc-berry); }
.cc-lead { margin: 8px auto 0; max-width: 32ch; font-style: italic; }
.cc-sprig { position: absolute; width: clamp(80px, 12vw, 140px); line-height: 0; pointer-events: none; }
.cc-sprig svg { width: 100%; height: auto; display: block; }
.cc-sprig--l { left: clamp(8px, 4vw, 60px); top: 24px; transform: rotate(-14deg); }
.cc-sprig--r { right: clamp(8px, 4vw, 60px); bottom: 12px; transform: rotate(12deg); }

/* ---- the record: rounded panels --------------------------------------- */
.cc-rec { position: relative; }
.cc-wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 40px) 60px; }
.cc-rec p { margin: 0 0 14px; }
.cc-rec p:last-child { margin-bottom: 0; }
.cc-panel { position: relative; margin: 70px 0 0; padding: 34px clamp(18px, 4vw, 46px); border-radius: 24px; box-shadow: 0 18px 40px rgba(94, 83, 72, 0.14); }
.cc-panel--plain { background: var(--cc-cream); outline: 2px dashed var(--cc-rose2); outline-offset: -10px; }
.cc-panel--linen { background: var(--cc-linen); outline: 2px dashed var(--cc-rose2); outline-offset: -10px; }
.cc-panel--ging {
  background: var(--cc-linen);
  background-image:
    repeating-linear-gradient(0deg, rgba(84, 102, 77, 0.16) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgba(84, 102, 77, 0.16) 0 10px, transparent 10px 20px);
}
.cc-inner { background: rgba(251, 247, 239, 0.93); border-radius: 16px; padding: 20px; }
.cc-h2 { margin: 0 0 12px; font-family: var(--cc-hand); font-weight: 700; font-size: clamp(40px, 6vw, 62px); line-height: 1; color: var(--cc-sage); transform: rotate(-1.5deg); display: inline-block; }
.cc-tag { position: absolute; top: -18px; right: 24px; background: var(--cc-rose); font-family: var(--cc-hand); font-size: 22px; padding: 4px 14px; border-radius: 12px; transform: rotate(3deg); z-index: 1; }

/* facts */
.cc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; margin: 0; }
.cc-meta dt { font-family: var(--cc-hand); font-size: 24px; color: var(--cc-berry); line-height: 1; }
.cc-meta dd { margin: 0; }

/* what carries the look */
.cc-tw { overflow-x: auto; }
.cc-ct { width: 100%; border-collapse: collapse; }
.cc-ct th, .cc-ct td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px dashed var(--cc-rose2); }
.cc-ct th { width: 32%; font-weight: 600; }
.cc-cl { display: block; font-family: var(--cc-hand); font-size: 20px; color: var(--cc-berry); font-weight: 500; }
.cc-none { font-style: italic; color: var(--cc-bark); }
.cc-nl { font-style: italic; color: var(--cc-bark); }
.cc-rec .cc-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; }
.cc-spec { display: block; font-family: var(--cc-hand); font-size: 30px; line-height: 1; color: var(--cc-berry); margin-bottom: 4px; }
.cc-swatch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cc-swatch span { width: 66px; height: 66px; border-radius: 50% 50% 50% 8px; display: grid; place-items: center; font-size: 12px; }
.cc-rec .cc-asbuilt { margin: 6px 0 0; font-style: italic; color: var(--cc-bark); }

/* what it argues */
.cc-big { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; margin: 0 0 14px; }
.cc-rec .cc-refuse { margin: 14px 0 0; background: var(--cc-rose); border-radius: 18px; padding: 14px 18px; }
.cc-refuse b { font-family: var(--cc-hand); font-size: 28px; color: var(--cc-berry); }

/* how you recognise it */
.cc-rec .cc-dx { font-family: var(--cc-hand); font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; color: var(--cc-berry); margin: 10px 0 16px; }

/* rules */
.cc-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cc-rule { background: var(--cc-cream); border-radius: 16px; padding: 16px 18px; border: 2px dashed var(--cc-rose2); }
.cc-rule h3 { margin: 0; font-family: var(--cc-hand); font-size: 32px; line-height: 1; color: var(--cc-sage); font-weight: 700; }
.cc-k { display: block; font-size: 14px; font-style: italic; color: var(--cc-bark); margin-bottom: 4px; }
.cc-rule p { margin: 0; }
.cc-rule small { display: block; font-style: italic; margin-top: 4px; color: var(--cc-bark); font-size: 15px; }
.cc-rule--wide { grid-column: 1 / -1; background: var(--cc-linen); }

/* what stands behind it */
.cc-firm { font-style: italic; }
.cc-rt { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 16px; margin-top: 16px; }
.cc-rt th, .cc-rt td { padding: 6px 8px; border-bottom: 1px dashed var(--cc-rose2); text-align: left; }
.cc-rt thead th { font-family: var(--cc-hand); font-size: 22px; font-weight: 700; color: var(--cc-sage); }

/* often confused with */
.cc-conf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc-conf > * { display: block; padding: 14px 16px; border-radius: 14px; background: var(--cc-cream); text-decoration: none; color: var(--cc-ink); border: 2px dashed var(--cc-rose2); }
.cc-rec .cc-conf a { color: var(--cc-ink); text-decoration: none; }
.cc-conf b { display: block; font-family: var(--cc-hand); font-size: 30px; line-height: 1; color: var(--cc-berry); }
.cc-rec .cc-conf a:hover { background: var(--cc-rose); color: var(--cc-ink); }

/* use it */
.cc-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cc-rec .cc-use a { display: block; padding: 20px; border-radius: 20px; background: var(--cc-sage); color: var(--cc-cream); text-decoration: none; }
.cc-use a b { display: block; font-family: var(--cc-hand); font-size: 34px; line-height: 1.05; }
.cc-rec .cc-use a:hover { background: var(--cc-berry); color: var(--cc-cream); }
.cc-rec .cc-mach { margin: 16px 0 0; }
.cc-mach .cc-hand { font-size: 24px; color: var(--cc-berry); }

/* the end */
.cc-rec .cc-end { text-align: center; margin: 40px 0 0; font-family: var(--cc-hand); font-size: 24px; position: relative; z-index: 1; padding-bottom: 50px; }
.cc-end a { background: var(--cc-cream); padding: 2px 8px; border-radius: 8px; }

/* ---- narrow widths ------------------------------------------------------ */
@media (max-width: 760px) {
  .cc-meta, .cc-rules, .cc-conf, .cc-use { grid-template-columns: 1fr; }
  .cc-sprig { display: none; }
}

/* Nothing on this page animates, so reduced motion has nothing to reduce;
   stated here so the audit does not go looking. */

/* research-dimension table at phone width: no fixed floor, cells wrap (QA 2026-09-29) */
@media (max-width: 480px) {
  .cc-rt { min-width: 0; }
  .cc-rt th, .cc-rt td { padding-inline: 6px; overflow-wrap: break-word; }
  .cc-rt thead th { font-size: 16px; }
  .cc-rt { font-size: 14px; }
}
