/* ==========================================================================
   Nourishment — skeuomorphic material system
   A walnut kitchen worktop, paper notebook sheets, stitched linen tabs,
   glazed ceramic and pressed clay. Local only: no external fonts or images.
   Linked by build.py. Textures are inline SVG noise (data URIs).
   ========================================================================== */

/* 1. Material tokens ------------------------------------------------------ */
:root{
  --walnut-900:#24140a;
  --walnut-700:#452915;
  --walnut-500:#5b371d;
  --oak-400:#a8743f;
  --oak-300:#c99a5b;

  --paper:#f8f0dc;
  --paper-hi:#fffaf0;
  --paper-kraft:#ead7ae;
  --paper-edge:#e4d3ae;

  --ink:#2e2118;
  --ink-soft:#4f3f35;
  --clay:#a4482a;
  --clay-deep:#7e3319;
  --sage:#4c6b49;
  --sage-deep:#33492f;
  --linen:#e9dcbf;
  --linen-thread:#7a5228;
  --stamp:#8a2a16;
  --cream-on-wood:#f6e9cf;
  --focus-on-paper:#173a63;
  --focus-on-wood:#ffdf8a;

  --rule:rgba(62,98,140,.26);
  --margin-rule:rgba(178,58,48,.5);

  --font-display:"Hoefler Text",Baskerville,"Baskerville Old Face","Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --font-text:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","Hoefler Text",Georgia,serif;
  --font-type:"American Typewriter","Courier Prime","Courier New",Courier,monospace;

  /* long horizontal grain streaks for the worktop */
  --tex-wood:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='540'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005 0.5' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 0 0.02  1.5 0 0 0 -0.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* fine fibre grain for paper */
  --tex-paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.32  0 0 0 0 0.16  0.55 0 0 0 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  /* woven cloth: warp and weft threads */
  --tex-linen:
    repeating-linear-gradient(0deg,rgba(255,255,255,.13) 0 1px,rgba(255,255,255,0) 1px 3px),
    repeating-linear-gradient(90deg,rgba(60,40,10,.12) 0 1px,rgba(60,40,10,0) 1px 3px);

  --shadow-sheet:
    inset 0 0 0 1px rgba(255,255,255,.45),
    inset 0 0 70px rgba(176,138,80,.16),
    0 1px 1px rgba(40,20,5,.4),
    0 3px 6px rgba(30,14,2,.3),
    0 26px 44px -16px rgba(12,5,0,.75);
  --shadow-object:
    0 2px 3px rgba(20,8,0,.5),
    0 10px 16px -6px rgba(10,4,0,.65);
}

/* 2. Base: the worktop ---------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;
  min-width:0;
  overflow-x:clip;
  color:var(--ink);
  font:1.125rem/1.65 var(--font-text);
  font-variant-numeric:oldstyle-nums;
  background-color:var(--walnut-500);
  background-image:
    var(--tex-wood),
    repeating-linear-gradient(180deg,rgba(20,8,0,0) 0 177px,rgba(20,8,0,.6) 177px 179px,rgba(255,220,170,.1) 179px 180px),
    repeating-linear-gradient(180deg,rgba(255,200,140,.06) 0 180px,rgba(0,0,0,.08) 180px 360px,rgba(255,190,120,.02) 360px 540px),
    linear-gradient(100deg,#6a4122 0%,#593418 36%,#6e4526 62%,#523016 100%);
  background-size:1000px 540px,auto,auto,auto;
}
/* warm overhead light and a soft vignette over the wood */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(110% 70% at 50% -10%,rgba(255,214,150,.22),rgba(255,214,150,0) 60%),
    radial-gradient(130% 110% at 50% 45%,rgba(15,6,0,0) 55%,rgba(15,6,0,.5) 100%);
}
img,svg{max-width:100%}
svg{display:block;height:auto}
p{margin:0 0 1em}
h1,h2,h3{
  margin:0;
  font-family:var(--font-display);
  font-weight:400;
  line-height:1.1;
  color:var(--ink);
  text-wrap:balance;
  overflow-wrap:break-word;
}
strong{font-weight:700;color:var(--ink)}
a{
  color:var(--clay-deep);
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}
a:hover{color:var(--ink);text-decoration-thickness:2.5px}
code{
  font-family:var(--font-type);
  font-size:.86em;
  line-height:1;
  padding:.12em .4em .16em;
  border-radius:3px;
  background:rgba(120,85,40,.14);
  box-shadow:inset 0 1px 1px rgba(60,35,10,.22);
  overflow-wrap:anywhere;
}

/* keyboard focus: ink-blue ring on paper, brass ring on wood and cloth */
:focus-visible{
  outline:3px solid var(--focus-on-paper);
  outline-offset:3px;
  border-radius:3px;
}
.draft a:focus-visible,
.brand:focus-visible,
.tabs a:focus-visible,
footer a:focus-visible,
.notebook a:focus-visible{
  outline-color:var(--focus-on-wood);
}
.notebook__page a:focus-visible{outline-color:var(--focus-on-paper)}
main:focus{outline:none}

.skip-link{
  position:absolute;
  left:12px;
  top:-120px;
  z-index:100;
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:8px 20px;
  font:700 1rem/1.2 var(--font-text);
  color:var(--ink);
  background-color:var(--paper-hi);
  background-image:var(--tex-paper);
  border-radius:4px;
  box-shadow:var(--shadow-object);
}
.skip-link:focus{top:12px;outline:3px solid var(--focus-on-wood);outline-offset:3px}

/* 3. Draft tape: obvious unpublished state ------------------------------- */
.draft{
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:4px 20px;
  padding:6px 16px;
  color:#5e1f0c;
  font:700 .8rem/1.35 var(--font-text);
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
  background-color:#ecd9a4;
  background-image:
    repeating-linear-gradient(135deg,rgba(164,72,42,.17) 0 14px,rgba(164,72,42,0) 14px 28px),
    var(--tex-paper);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(90,50,10,.45),
    0 8px 16px -6px rgba(10,4,0,.7);
}
.draft__label{
  padding:3px 12px;
  border:2px solid currentColor;
  border-radius:5px;
  background:rgba(255,250,235,.55);
}
.draft a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  color:#5e1f0c;
  text-decoration:underline;
  text-decoration-thickness:2px;
}
.draft a:hover{color:var(--ink)}

/* 4. Layout shell --------------------------------------------------------- */
.wrap{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}
.masthead{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px 24px;
  padding:30px 0 6px;
}

/* brand: the app icon links home */
.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0;
  text-decoration:none;
}
.brand__icon{
  display:block;
  flex:none;
  width:54px;
  height:54px;
  border-radius:14px;
  box-shadow:0 1px 2px rgba(24,35,21,.45),0 0 0 1px rgba(255,247,218,.5);
}

/* navigation: stitched linen tabs */
.tabs ul{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
.tabs a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:104px;
  min-height:50px;
  padding:10px 24px 11px;
  font:700 .86rem/1 var(--font-text);
  letter-spacing:.16em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  background-color:var(--linen);
  background-image:var(--tex-linen);
  border-radius:5px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 3px rgba(120,85,40,.25),
    var(--shadow-object);
  transition:transform .08s ease,box-shadow .08s ease;
}
/* the running stitch */
.tabs a::before{
  content:"";
  position:absolute;
  inset:5px;
  border:1.5px dashed var(--linen-thread);
  border-radius:3px;
  opacity:.8;
  pointer-events:none;
}
.tabs a:hover{color:var(--clay-deep);transform:translateY(-1px)}
.tabs a:active{transform:translateY(2px)}
.tabs a[aria-current=page]{
  color:#fdf6e3;
  background-color:var(--sage-deep);
  transform:translateY(2px);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.5),
    inset 0 -1px 0 rgba(255,255,255,.12),
    0 1px 1px rgba(20,8,0,.6);
}
.tabs a[aria-current=page]::before{border-color:#f3e6c4;border-style:dashed}
/* current page is also marked by shape, not only colour */
.tabs a[aria-current=page]::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-9px;
  width:12px;
  height:12px;
  margin-left:-6px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fffdf6,#e9d7b0 60%,#b99a68);
  box-shadow:0 2px 3px rgba(10,4,0,.6);
}

.page{position:relative;display:block}

/* 5. Paper ---------------------------------------------------------------- */
.sheet{
  position:relative;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    var(--tex-paper),
    linear-gradient(135deg,rgba(255,255,255,.6),rgba(255,255,255,0) 42%),
    linear-gradient(0deg,rgba(170,130,70,.12),rgba(170,130,70,0) 32%);
  border-radius:3px 5px 4px 6px;
  box-shadow:var(--shadow-sheet);
}
/* loose sheets lying underneath */
.sheet-under{
  position:absolute;
  inset:0;
  background-color:#f1e5c8;
  background-image:var(--tex-paper);
  border-radius:4px;
  box-shadow:0 2px 5px rgba(30,14,2,.4),0 16px 26px -12px rgba(12,5,0,.6);
  transform:rotate(1.5deg);
}
.sheet-under + .sheet-under{background-color:#ece0c0;transform:rotate(-1.1deg) translate(-4px,5px)}

/* strips of cloth tape */
.sheet--taped::before,
.sheet--taped::after,
.recipe-card::before,
.summary::before{
  content:"";
  position:absolute;
  z-index:2;
  width:118px;
  height:32px;
  background-color:rgba(173,192,150,.86);
  background-image:
    repeating-linear-gradient(90deg,rgba(255,255,255,.22) 0 2px,rgba(255,255,255,0) 2px 6px),
    linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0) 40%,rgba(40,50,20,.12));
  box-shadow:0 1px 2px rgba(30,15,0,.4);
  clip-path:polygon(0 0,3% 12%,0 25%,3% 38%,0 50%,3% 62%,0 75%,3% 88%,0 100%,100% 100%,97% 88%,100% 75%,97% 62%,100% 50%,97% 38%,100% 25%,97% 12%,100% 0);
}
.sheet--taped::before{top:-13px;left:-26px;transform:rotate(-37deg)}
.sheet--taped::after{top:-12px;right:-26px;transform:rotate(35deg);background-color:rgba(222,170,138,.88)}

.eyebrow{
  margin:0;
  font:700 .8rem/1.4 var(--font-text);
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--sage-deep);
}
.lead{
  font-size:1.3rem;
  line-height:1.6;
  color:var(--ink-soft);
}

/* 6. Pressed clay button -------------------------------------------------- */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:13px 34px 15px;
  border-radius:999px;
  font:700 1.1rem/1 var(--font-text);
  letter-spacing:.03em;
  color:#fff6e6;
  text-decoration:none;
  text-shadow:0 -1px 0 rgba(70,20,5,.7);
  background:linear-gradient(180deg,#b04f2e 0%,#9a4226 50%,#7f3419 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,210,180,.6),
    inset 0 -3px 0 rgba(80,25,8,.45),
    0 0 0 1px #6d2a12,
    0 4px 0 1px #57200c,
    0 10px 14px -2px rgba(40,15,0,.55);
  transition:transform .08s ease,box-shadow .08s ease;
}
.button:hover{
  color:#fff;
  background:linear-gradient(180deg,#a94a2a 0%,#933d22 50%,#783016 100%);
}
.button:active{
  transform:translateY(4px);
  box-shadow:
    inset 0 3px 7px rgba(60,15,0,.65),
    0 0 0 1px #6d2a12,
    0 0 0 1px #57200c,
    0 2px 4px rgba(40,15,0,.5);
}

/* 7. Home: hero ----------------------------------------------------------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);
  align-items:center;
  padding:54px 0 36px;
}
.hero__paper{position:relative;z-index:1}
.sheet--hero{padding:58px 64px 52px}
.hero h1{
  margin:.4em 0 .5em;
  font-size:clamp(2.5rem,4.5vw,3.6rem);
  line-height:1.05;
  letter-spacing:-.018em;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
.hero h1 span{font-style:italic;color:var(--clay-deep)}
.hero .lead{max-width:30em;margin-bottom:1.3em}
.subnote{
  margin:1.5em 0 0;
  padding-top:1em;
  font-size:1rem;
  font-style:italic;
  color:var(--ink-soft);
  border-top:1px dashed rgba(90,60,30,.45);
}
.still-life{
  margin:0 0 0 -64px;
  min-width:0;
}
.still-life svg{width:100%}

/* 8. Home: recipe cards --------------------------------------------------- */
.features{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:36px;
  align-items:start;
  padding:44px 0 56px;
  scroll-margin-top:24px;
}
.recipe-card{
  position:relative;
  padding:34px 28px 26px;
  background-color:var(--paper-hi);
  background-image:
    var(--tex-paper),
    linear-gradient(135deg,rgba(255,255,255,.7),rgba(255,255,255,0) 45%);
  border-radius:4px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.5),
    inset 0 0 40px rgba(176,138,80,.14),
    0 1px 1px rgba(40,20,5,.4),
    3px 4px 0 -1px #efe2c4,
    3px 5px 1px 0 rgba(40,20,5,.35),
    0 22px 34px -14px rgba(12,5,0,.75);
}
.recipe-card::before{top:-14px;left:50%;margin-left:-59px;transform:rotate(-2deg)}
.recipe-card:nth-child(2)::before{background-color:rgba(222,170,138,.88);transform:rotate(2.5deg)}
.recipe-card:nth-child(3)::before{background-color:rgba(226,204,150,.9);transform:rotate(-1deg)}
.recipe-card__head{
  display:flex;
  align-items:center;
  gap:16px;
  padding-bottom:16px;
  border-bottom:2px solid rgba(178,58,48,.55);
}
.medallion{
  flex:none;
  width:66px;
  height:66px;
  filter:drop-shadow(0 3px 3px rgba(40,20,5,.45));
}
.recipe-card h2{
  font-size:1.62rem;
  line-height:1.12;
  letter-spacing:-.01em;
}
/* blue-ruled index card lines that always sit under the text */
.recipe-card p{
  margin:6px 0 0;
  font-size:1.06rem;
  line-height:32px;
  color:var(--ink-soft);
  background-image:linear-gradient(to bottom,rgba(62,98,140,0) 31px,var(--rule) 31px);
  background-size:100% 32px;
  background-position:0 -6px;
  padding-bottom:6px;
}

/* 9. Home: open cloth-bound notebook -------------------------------------- */
.notebook{
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:20px 0 84px;
  padding:18px;
  border-radius:14px;
  background-color:var(--sage-deep);
  background-image:var(--tex-linen),linear-gradient(135deg,rgba(255,255,255,.12),rgba(0,0,0,.18));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -2px 0 rgba(0,0,0,.35),
    0 4px 8px rgba(10,4,0,.5),
    0 32px 50px -18px rgba(10,4,0,.85);
}
/* stitched hem on the cover */
.notebook::before{
  content:"";
  position:absolute;
  inset:7px;
  border:1.5px dashed rgba(243,230,196,.75);
  border-radius:9px;
  pointer-events:none;
}
.notebook__page{
  position:relative;
  padding:48px 52px 50px;
  background-color:var(--paper);
  background-image:var(--tex-paper),linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,0) 45%);
}
.notebook__page:first-child{
  border-radius:4px 0 0 4px;
  box-shadow:inset -34px 0 34px -24px rgba(60,35,10,.5),inset 0 0 0 1px rgba(255,255,255,.4);
}
.notebook__page:last-child{
  border-radius:0 4px 4px 0;
  box-shadow:inset 34px 0 34px -24px rgba(60,35,10,.5),inset 0 0 0 1px rgba(255,255,255,.4);
  border-left:2px dashed rgba(90,60,30,.45);
}
.notebook h2{
  margin:.35em 0 .5em;
  font-size:2.15rem;
  letter-spacing:-.012em;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
.notebook p{color:var(--ink-soft)}
.notebook p:last-child{margin-bottom:0}
.notebook .eyebrow{color:var(--sage-deep)}

/* 10. Legal: ruled notebook sheet ----------------------------------------- */
.page--legal,.page--review{padding:52px 0 76px}
.sheet--ruled{
  max-width:880px;
  margin:0 auto;
  padding:64px 76px 76px 116px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.45),
    inset 0 0 70px rgba(176,138,80,.16),
    0 1px 1px rgba(40,20,5,.4),
    4px 5px 0 -1px #efe2c4,
    4px 6px 1px 0 rgba(40,20,5,.4),
    9px 11px 0 -2px #e8d9b6,
    9px 12px 2px -1px rgba(40,20,5,.4),
    0 36px 52px -18px rgba(12,5,0,.8);
}
/* punched holes showing the worktop */
.sheet--ruled::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:30px;
  width:28px;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 50% 56%,#5b371d 0 8px,#2a170a 8.5px 10.5px,rgba(255,255,255,.7) 11px 12px,rgba(255,255,255,0) 12.5px),
    radial-gradient(circle at 50% 56%,#5b371d 0 8px,#2a170a 8.5px 10.5px,rgba(255,255,255,.7) 11px 12px,rgba(255,255,255,0) 12.5px),
    radial-gradient(circle at 50% 56%,#5b371d 0 8px,#2a170a 8.5px 10.5px,rgba(255,255,255,.7) 11px 12px,rgba(255,255,255,0) 12.5px);
  background-size:28px 28px;
  background-repeat:no-repeat;
  background-position:center 110px,center 50%,center calc(100% - 110px);
}
/* red double margin line */
.sheet--ruled::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:86px;
  width:4px;
  border-left:1px solid var(--margin-rule);
  border-right:1px solid var(--margin-rule);
  pointer-events:none;
}
.sheet__head h1{
  margin:.25em 0 .45em;
  font-size:clamp(2.5rem,6vw,3.8rem);
  letter-spacing:-.02em;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
/* draft status, rubber-stamped */
.meta{
  display:inline-block;
  max-width:100%;
  margin:0;
  padding:9px 16px 8px;
  font:700 .8rem/1.5 var(--font-type);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--stamp);
  border:3px double var(--stamp);
  border-radius:6px;
  background:rgba(138,42,22,.05);
  transform:rotate(-1.2deg);
  transform-origin:left center;
}
/* summary: a kraft note taped onto the page */
.summary{
  position:relative;
  margin:44px 0 38px;
  padding:34px 30px 26px;
  font-size:1.12rem;
  line-height:1.62;
  color:#33251a;
  background-color:var(--paper-kraft);
  background-image:var(--tex-paper),linear-gradient(135deg,rgba(255,255,255,.35),rgba(255,255,255,0) 50%);
  border-radius:2px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 2px 4px rgba(40,20,5,.3),
    0 14px 20px -12px rgba(40,20,5,.6);
}
.summary::before{top:-15px;left:50%;margin-left:-59px;transform:rotate(-1.5deg)}
.summary p{margin:0}

/* section index: small stitched cloth tabs */
.toc{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0 0 20px;
}
.toc a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:8px 20px;
  font:700 .8rem/1 var(--font-text);
  letter-spacing:.14em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  background-color:var(--linen);
  background-image:var(--tex-linen);
  border-radius:4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -2px 3px rgba(120,85,40,.22),
    0 1px 2px rgba(40,20,5,.45),
    0 6px 9px -5px rgba(40,20,5,.55);
  transition:transform .08s ease;
}
.toc a::before{
  content:"";
  position:absolute;
  inset:4px;
  border:1.5px dashed var(--linen-thread);
  border-radius:2px;
  opacity:.75;
  pointer-events:none;
}
.toc a:hover{color:var(--clay-deep);transform:translateY(-1px)}
.toc a:active{transform:translateY(2px)}

.ruled section{scroll-margin-top:24px}
.ruled h2{
  position:relative;
  margin:0;
  padding:32px 0 14px;
  font-size:1.85rem;
  letter-spacing:-.01em;
  text-shadow:0 1px 0 rgba(255,255,255,.8);
}
/* a clay bead threaded on the margin line marks each section */
.ruled h2::before{
  content:"";
  position:absolute;
  left:-36px;
  top:41px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#e2906b,#a4482a 58%,#6d2a12);
  box-shadow:0 2px 2px rgba(40,20,5,.45),inset 0 -1px 1px rgba(60,15,0,.5);
}
/* every line of text carries its own rule, so lines never drift */
.ruled section p,
.ruled section li{
  margin:0;
  padding:0 0 30px;
  font-size:1.0625rem;
  line-height:30px;
  color:#3a2c23;
  background-image:linear-gradient(to bottom,rgba(62,98,140,0) 29px,var(--rule) 29px);
  background-size:100% 30px;
  background-position:0 -5px;
}
.ruled section ul{margin:0;padding:0;list-style:none}
.ruled section li{position:relative;padding-left:30px}
.ruled section li::before{
  content:"";
  position:absolute;
  left:4px;
  top:10px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:radial-gradient(circle at 34% 30%,#9db892,#4c6b49 60%,#2c4029);
  box-shadow:0 1px 1px rgba(40,20,5,.4);
}
.ruled section > :last-child{padding-bottom:6px}
.ruled section ul > li:last-child{padding-bottom:6px}

/* 11. Review: clipboard and checklist slips -------------------------------- */
.clipboard{
  position:relative;
  max-width:920px;
  margin:26px auto 0;
  padding:24px 24px 30px;
  border-radius:18px;
  background-color:#9a6a3a;
  background-image:
    var(--tex-wood),
    linear-gradient(180deg,#b07c46 0%,#966433 55%,#80522a 100%);
  background-size:1000px 540px,auto;
  box-shadow:
    inset 0 2px 0 rgba(255,225,180,.4),
    inset 0 -3px 0 rgba(30,12,0,.5),
    inset 0 0 0 1px rgba(60,30,5,.5),
    0 4px 8px rgba(10,4,0,.5),
    0 34px 52px -18px rgba(10,4,0,.85);
}
/* the sprung metal clip */
.clipboard__clip{
  position:absolute;
  z-index:3;
  top:-26px;
  left:50%;
  width:220px;
  height:76px;
  margin-left:-110px;
  border-radius:14px 14px 9px 9px;
  background:linear-gradient(180deg,#f6f4ee 0%,#cfccc0 20%,#8d897d 48%,#dedbd0 74%,#a19d90 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(70,65,55,.5),
    0 7px 10px rgba(0,0,0,.5);
}
.clipboard__clip::before{
  content:"";
  position:absolute;
  top:12px;
  left:50%;
  width:26px;
  height:26px;
  margin-left:-13px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 60%,#5b371d 0 8px,#2a170a 8.5px 11px,#efede6 11.5px);
  box-shadow:inset 0 0 0 1px rgba(70,65,55,.6),0 1px 0 rgba(255,255,255,.8);
}
.clipboard__clip::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:9px;
  height:6px;
  border-radius:3px;
  background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(255,255,255,.55));
}
.sheet--clipped{padding:88px 60px 60px}
.sheet--clipped .sheet__head h1{font-size:clamp(2.6rem,6.4vw,4rem)}
.sheet--clipped .lead{margin:0 0 30px;max-width:34em}
/* the unpublished state, rubber-stamped at the top of the review sheet */
.sheet--clipped .eyebrow{
  display:inline-block;
  max-width:100%;
  padding:8px 14px 7px;
  font-family:var(--font-type);
  letter-spacing:.14em;
  color:var(--stamp);
  border:3px double var(--stamp);
  border-radius:6px;
  background:rgba(138,42,22,.05);
  transform:rotate(-1.2deg);
  transform-origin:left center;
}

.review-item{
  position:relative;
  margin:26px 0 0;
  padding:26px 30px 26px 40px;
  background-color:var(--paper-hi);
  background-image:var(--tex-paper);
  border-radius:3px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.6),
    0 1px 2px rgba(40,20,5,.35),
    0 12px 16px -10px rgba(40,20,5,.55);
}
/* coloured cloth edge, like an index divider */
.review-item::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:14px;
  border-radius:3px 0 0 3px;
  background-color:var(--clay);
  background-image:var(--tex-linen);
  box-shadow:inset -2px 0 3px rgba(0,0,0,.25);
}
.review-item:nth-of-type(2)::before{background-color:var(--sage)}
.review-item:nth-of-type(3)::before{background-color:var(--oak-400)}
.review-item:nth-of-type(4)::before{background-color:var(--sage-deep)}
.review-item h2{
  margin:0 0 .55em;
  padding-bottom:.4em;
  font-size:1.7rem;
  letter-spacing:-.01em;
  border-bottom:2px solid rgba(178,58,48,.5);
}
.review-item p{color:#3a2c23}
.review-item p:last-child{margin-bottom:0}
.review-item ul{margin:0;padding:0;list-style:none}
.review-item li{
  position:relative;
  margin:0 0 16px;
  padding-left:36px;
  color:#3a2c23;
}
.review-item li:last-child{margin-bottom:0}
/* an empty, pressed-in tick box for each item still to confirm */
.review-item li::before{
  content:"";
  position:absolute;
  left:0;
  top:.3em;
  width:20px;
  height:20px;
  border-radius:3px;
  border:1px solid rgba(90,60,30,.6);
  background:#fffdf6;
  box-shadow:inset 0 2px 3px rgba(60,35,10,.45),0 1px 0 rgba(255,255,255,.9);
}

/* 12. Footer: engraved into the worktop ----------------------------------- */
footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 24px;
  padding:26px 0 46px;
  color:var(--cream-on-wood);
  font-size:1rem;
  text-shadow:0 -1px 0 rgba(0,0,0,.7);
  border-top:2px solid rgba(20,8,0,.55);
  box-shadow:inset 0 1px 0 rgba(255,220,170,.16);
}
.footerlinks{display:flex;flex-wrap:wrap;gap:10px}
.footerlinks a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:8px 18px;
  font-size:.95rem;
  font-weight:700;
  text-decoration:none;
  text-shadow:none;
  color:var(--ink);
  background-color:var(--linen);
  background-image:var(--tex-linen);
  border-radius:4px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),var(--shadow-object);
}
.footerlinks a::before{
  content:"";
  position:absolute;
  inset:4px;
  border:1.5px dashed var(--linen-thread);
  border-radius:2px;
  opacity:.7;
  pointer-events:none;
}
.footerlinks a:hover{color:var(--clay-deep)}

/* 13. Wide screens: small, natural rotations ------------------------------ */
@media (min-width:901px){
  .recipe-card:nth-child(1){transform:rotate(-1.1deg)}
  .recipe-card:nth-child(2){transform:rotate(.7deg);margin-top:30px}
  .recipe-card:nth-child(3){transform:rotate(-.5deg);margin-top:8px}
  .summary{transform:rotate(-.4deg)}
}

/* 14. Tablets and below ---------------------------------------------------- */
@media (max-width:900px){
  .hero{grid-template-columns:minmax(0,1fr);padding:40px 0 20px}
  .sheet--hero{padding:50px 48px 44px}
  .still-life{margin:-18px auto 0;max-width:500px;width:100%}
  .features{grid-template-columns:minmax(0,1fr);gap:40px;padding:40px 0 48px}
  .notebook{grid-template-columns:minmax(0,1fr)}
  .notebook__page:first-child{
    border-radius:4px 4px 0 0;
    box-shadow:inset 0 -30px 30px -24px rgba(60,35,10,.4),inset 0 0 0 1px rgba(255,255,255,.4);
  }
  .notebook__page:last-child{
    border-radius:0 0 4px 4px;
    border-left:0;
    border-top:2px dashed rgba(90,60,30,.45);
    box-shadow:inset 0 30px 30px -24px rgba(60,35,10,.4),inset 0 0 0 1px rgba(255,255,255,.4);
  }
}

/* 15. Phones (designed at 375px) ------------------------------------------- */
@media (max-width:600px){
  body{font-size:1.0625rem}
  .wrap{padding:0 12px}
  .draft{letter-spacing:.1em;font-size:.75rem;padding:8px 10px 2px;gap:0 12px}
  .masthead{flex-direction:column;align-items:stretch;gap:16px;padding:22px 0 4px}
  .brand{align-self:center}
  .tabs ul{gap:8px;flex-wrap:nowrap}
  .tabs li{flex:1 1 0;min-width:0}
  .tabs a{width:100%;min-width:0;padding:10px 6px 11px;letter-spacing:.12em;font-size:.8rem}

  .hero{padding:30px 0 12px}
  .sheet-under{transform:translate(3px,4px)}
  .sheet-under + .sheet-under{transform:translate(-3px,7px)}
  .sheet--taped::before{top:-14px;left:50%;margin-left:-59px;transform:rotate(-2deg)}
  .sheet--taped::after{display:none}
  .sheet--hero{padding:44px 24px 34px}
  .hero h1{font-size:clamp(2rem,9.4vw,2.7rem)}
  .lead{font-size:1.16rem}
  .button{width:100%}
  .still-life{margin-top:-6px}

  .features{gap:36px;padding:36px 0 40px}
  .recipe-card{padding:32px 22px 22px}
  .recipe-card h2{font-size:1.5rem}
  .medallion{width:58px;height:58px}

  .notebook{padding:12px;margin:12px 0 56px;border-radius:12px}
  .notebook::before{inset:4px;border-radius:9px}
  .notebook__page{padding:34px 24px 36px}
  .notebook h2{font-size:1.85rem}

  .page--legal,.page--review{padding:34px 0 52px}
  .sheet--ruled{padding:40px 22px 48px 36px}
  .sheet--ruled::before{display:none}
  .sheet--ruled::after{left:16px}
  .ruled h2{font-size:1.6rem;padding-top:26px}
  .ruled h2::before{display:none}
  .summary{padding:32px 20px 22px;font-size:1.06rem}
  .meta{font-size:.74rem;letter-spacing:.08em;padding:8px 12px 7px}
  .toc{gap:10px}
  .toc a{padding:8px 14px;letter-spacing:.1em}

  .clipboard{padding:10px 10px 14px;border-radius:14px;margin-top:22px}
  .clipboard__clip{width:160px;margin-left:-80px;height:62px;top:-22px}
  .clipboard__clip::before{top:8px}
  .sheet--clipped{padding:64px 16px 24px}
  .review-item{padding:22px 18px 22px 30px;margin-top:20px}
  .review-item h2{font-size:1.45rem}
  .review-item li{padding-left:32px}

  footer{flex-direction:column;align-items:flex-start;padding:22px 0 38px}
}

/* 16. Preferences ---------------------------------------------------------- */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none !important}
}
@media (forced-colors:active){
  .tabs a[aria-current=page]{border:3px solid CanvasText}
  .button,.tabs a,.toc a,.footerlinks a,.brand{border:1px solid CanvasText}
}
@media print{
  body{background:#fff;color:#000}
  body::before,.clipboard__clip,.still-life,.skip-link{display:none}
  .sheet,.recipe-card,.review-item,.summary,.notebook,.notebook__page,.clipboard{
    box-shadow:none;background:#fff;transform:none
  }
  footer{color:#000;text-shadow:none}
}
