/* Look: the butcher shop's give-away kitchen calendar, hung by the fridge beside the shop's
   Christmas order pad. Calendar-stock cream, butcher red and holly green two-colour print,
   litho ink brown, twine gold, order-slip manila, frost blue for the thaw.
   Corben (display) and Merriweather Sans (text), local OFL files in fonts/. */
@font-face { font-family: "Corben"; src: url("fonts/corben-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("fonts/merriweathersans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("fonts/merriweathersans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --cream: #fbf5e9;      /* calendar stock */
  --cranberry: #a3202a;  /* butcher red, second ink */
  --pine: #1d4a33;       /* holly green */
  --roast: #2e1c12;      /* litho ink */
  --gold: #b8862b;       /* twine and gilt, art only */
  --stone: #f2e4c6;      /* order-slip manila, butcher paper */
  --frost: #3d6f8f;      /* the thaw, art only */
  --wall: #e6dac2;       /* kitchen wall */
  --white: #ffffff;
  --warnbg: #fbe9e6;
  --link: #a3202a;
  --display: "Corben", "Cooper Black", Georgia, serif;
  --text: "Merriweather Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--roast); font: 400 17px/1.6 var(--text);
  background-color: var(--wall);
  background-image: repeating-linear-gradient(90deg, rgba(46, 28, 18, .045) 0 1px, transparent 1px 64px);
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; color: var(--roast); }
h2 { font-size: clamp(26px, 3vw, 34px); color: var(--cranberry); margin: 0 0 .5em; }
.wall > header, main, footer { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--frost); outline-offset: 2px; }

/* the hanging nail and its twine, shared by the picture and the calendar sheet */
.nail { position: absolute; top: -34px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 35%, #fbf5e9 0 15%, #b8862b 16% 55%, #2e1c12 56%); box-shadow: 0 2px 2px rgba(46, 28, 18, .35); }
.nail::before, .nail::after { content: ""; position: absolute; top: 7px; left: 6px; width: 2px; height: 46px;
  background: repeating-linear-gradient(180deg, var(--cranberry) 0 4px, var(--cream) 4px 7px); transform-origin: top center; z-index: -1; }
.nail::before { transform: rotate(38deg); }
.nail::after { transform: rotate(-38deg); }

/* header: the title on the wall, the calendar's lithographed picture hung beside it */
.top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: center; padding-top: 56px !important; padding-bottom: 40px !important; }
.kicker { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--pine); display: flex; align-items: center; gap: 12px; }
.kicker::after { content: ""; flex: 0 0 72px; height: 6px; background: repeating-linear-gradient(90deg, var(--cranberry) 0 8px, var(--cream) 8px 12px); border-radius: 3px; }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.01em; color: var(--cranberry); margin: .18em 0 .28em; }
.intro { font-size: 19px; max-width: 34em; margin: 0 0 20px; }
.warn, .notfield { background: var(--warnbg); color: var(--roast); border: 2px solid var(--cranberry); box-shadow: inset 0 0 0 3px var(--warnbg), inset 0 0 0 4px var(--cranberry); padding: 12px 16px; margin: 0; border-radius: 2px; }
.warn strong, .notfield strong { color: var(--cranberry); }
.warn { font-size: 15.5px; max-width: 38em; }
.picture { position: relative; margin: 34px 0 0; transform: rotate(1.4deg); }
.picture-card { background: var(--cream); padding: 16px 18px 14px; border: 3px solid var(--cranberry); box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px var(--cranberry), 0 14px 26px -12px rgba(46, 28, 18, .55); text-align: center; }
.picture-card::before { content: ""; display: block; width: 16px; height: 16px; margin: -4px auto 6px; border-radius: 50%; background: var(--wall); box-shadow: inset 0 1px 2px rgba(46, 28, 18, .5); }
.greet { font-family: var(--display); font-weight: 700; color: var(--pine); font-size: 26px; margin: 0; }
.roast-art { display: block; width: 100%; height: auto; max-height: 300px; }
.compl { margin: 2px 0 0; padding-top: 8px; border-top: 2px solid var(--pine); font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--cranberry); line-height: 1.25; }
.compl span { display: block; font: 700 11px/1.6 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--pine); }

/* the tool: the order slip beside the calendar sheet */
.tool { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 48px; align-items: start; padding: 8px 0 56px; }
.tool > * { min-width: 0; }
.slip { background: var(--stone); padding: 26px 26px 20px; transform: rotate(-.8deg); position: sticky; top: 16px;
  box-shadow: 0 12px 24px -14px rgba(46, 28, 18, .6);
  -webkit-mask: radial-gradient(circle 5px at 9px 0, transparent 98%, #000) -9px 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 5px at 9px 0, transparent 98%, #000) -9px 0 / 18px 100% repeat-x; }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 2px dashed rgba(46, 28, 18, .35); }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 4px; padding: 6px 10px; background: var(--cranberry); color: var(--white);
  font: 700 13px/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; }
.slip-head .no { font-family: var(--display); letter-spacing: .04em; font-size: 15px; }
.slip h2 { font-size: 28px; margin: 14px 0 6px; }
#f { counter-reset: line; }
.row { display: contents; }
.row > div { counter-increment: line; position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 10px 0 6px; border-bottom: 1px solid rgba(163, 32, 42, .45); }
.row > div::before { content: counter(line); grid-row: 1 / span 2; align-self: start; margin-top: 2px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--cranberry); color: var(--cranberry);
  font: 700 15px/26px var(--display); text-align: center; }
label { grid-column: 2; display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); }
input, select { grid-column: 2; width: 100%; min-height: 44px; font: 700 19px/1.2 var(--text); color: var(--roast); background: transparent; border: 0; border-bottom: 2px solid var(--roast); border-radius: 0; padding: 6px 2px; }
select { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--cranberry) 50%), linear-gradient(-45deg, transparent 50%, var(--cranberry) 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 8px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--cream); color: var(--roast); }
input:focus, select:focus { background-color: rgba(251, 245, 233, .8); }
.slip-foot { display: flex; justify-content: space-between; margin: 16px 0 0; font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--pine); }

.sheet { position: relative; margin-top: 34px; background: var(--cream); padding: 30px 32px 28px; border-top: 10px solid var(--cranberry);
  box-shadow: 0 1px 0 rgba(46, 28, 18, .15), 0 20px 34px -18px rgba(46, 28, 18, .6); }
.sheet .nail { top: -40px; }
.err { color: var(--cranberry); background: var(--warnbg); padding: 12px 14px; font-weight: 700; border-left: 6px solid var(--cranberry); margin: 0; }
.notfield { font-size: 15px; display: inline-block; }

.figs { display: grid; grid-template-columns: 1fr 1.25fr 1fr; margin: 20px 0 8px; border-top: 3px double var(--cranberry); border-bottom: 3px double var(--cranberry); }
.fig { padding: 14px 18px 16px; }
.fig + .fig { border-left: 1px solid rgba(163, 32, 42, .45); }
.fig:first-child { padding-left: 0; }
.fig h3 { margin: 0 0 6px; font: 700 12.5px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--cranberry); }
.big { font: 700 clamp(22px, 2.2vw, 28px)/1.15 var(--display); margin: 0 0 6px; color: var(--roast); }
#buy { font-size: clamp(28px, 3vw, 38px); color: var(--pine); }
#thaw-sub, #oven-sub { font-size: 14px; line-height: 1.5; margin: 0; }

/* signature 1: the month grid, marked up */
.cal { margin-top: 22px; }
.cal-title { text-align: center; margin: 0 0 10px; font: 700 clamp(28px, 3.2vw, 40px)/1.1 var(--display); color: var(--cranberry); display: flex; align-items: center; gap: 16px; }
.cal-title::before, .cal-title::after { content: ""; flex: 1; height: 2px; background: var(--pine); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--roast); border-top: 1px solid var(--roast); }
.dow { background: var(--pine); color: var(--white); font: 700 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 8px 0; border-right: 1px solid var(--roast); border-bottom: 1px solid var(--roast); }
.dow.sun { background: var(--cranberry); }
.day { position: relative; min-height: 92px; padding: 6px 7px; border-right: 1px solid var(--roast); border-bottom: 1px solid var(--roast); background: var(--cream); overflow: hidden; }
.day b { display: block; font: 700 22px/1 var(--display); color: var(--roast); }
.day.sun b { color: var(--cranberry); }
.day b i { font-style: normal; }
.day.off b { opacity: .45; }
.day small { position: relative; z-index: 2; display: block; margin-top: 6px; font: 700 11.5px/1.25 var(--text); color: var(--roast); }
.day.thaw { background: linear-gradient(rgba(61, 111, 143, .2), rgba(61, 111, 143, .2)), var(--cream); box-shadow: inset 0 -5px 0 var(--frost); }
.day.spare { background: repeating-linear-gradient(135deg, rgba(61, 111, 143, .28) 0 2px, transparent 2px 8px), var(--cream); }
.day.water { background: radial-gradient(circle, rgba(61, 111, 143, .45) 1.5px, transparent 2px) 0 0 / 9px 9px, var(--cream); }
.day.oven { background-color: var(--stone); }
.stamp { position: absolute; right: 6px; top: 6px; width: 40px; height: 26px; fill: none; stroke: var(--cranberry); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-8deg); }
.stamp path:first-child { fill: rgba(184, 134, 43, .35); }
.ring { position: absolute; left: -6px; top: -7px; width: 58px; height: 46px; fill: none; stroke: var(--cranberry); stroke-width: 3; stroke-linecap: round; z-index: 1; pointer-events: none;
  stroke-dasharray: 200; stroke-dashoffset: 0; animation: pencil .7s ease-out; }
@keyframes pencil { from { stroke-dashoffset: 200; } }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 0 0; font-size: 13px; }
.k { display: inline-block; width: 18px; height: 14px; border: 1px solid var(--roast); margin-right: -8px; vertical-align: -2px; }
.k.thaw { background: rgba(61, 111, 143, .25); box-shadow: inset 0 -3px 0 var(--frost); }
.k.spare { background: repeating-linear-gradient(135deg, rgba(61, 111, 143, .5) 0 2px, transparent 2px 5px); }
.k.water { background: radial-gradient(circle, rgba(61, 111, 143, .7) 1.2px, transparent 1.6px) 0 0 / 5px 5px; }
.k.oven { background: var(--stone); }
.k.dinner { border: 2px solid var(--cranberry); border-radius: 50%; }

/* signature 2: the day of, hour by hour */
.strip { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--roast); }
.strip-title { margin: 0 0 4px; font: 700 13px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--pine); }
.axis { position: relative; height: 24px; margin: 0 16px 0 170px; border-bottom: 1px solid var(--roast); }
.axis span { position: absolute; bottom: 4px; transform: translateX(-50%); font-size: 12px; font-weight: 700; white-space: nowrap; }
.axis span::after { content: ""; position: absolute; left: 50%; top: 100%; height: 5px; border-left: 1px solid var(--roast); }
.lane { display: grid; grid-template-columns: 170px 1fr; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(46, 28, 18, .15); }
.lane-name { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.2; }
.lane-name small { display: block; font-weight: 400; font-size: 12.5px; }
.track { position: relative; height: 24px; margin-right: 16px; background: repeating-linear-gradient(90deg, rgba(46, 28, 18, .08) 0 1px, transparent 1px 10%); }
.bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; border: 1.5px solid var(--roast); transition: left .45s ease, width .45s ease; }
.water .bar { background: var(--frost); }
.water .bar i { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: var(--cream); }
.water .bar i:last-child { display: none; }
.prep .bar { background: var(--gold); }
.roast .bar { background: var(--cranberry); }
.rest .bar { background: repeating-linear-gradient(135deg, var(--pine) 0 4px, #2d6449 4px 8px); }
.pin { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid var(--cranberry); background: var(--cream); transition: left .45s ease; }
.pin::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--cranberry); }

/* the calendar's notes lines */
.notes-lines { margin-top: 26px; }
.notes-lines h3 { font-size: 24px; color: var(--cranberry); margin: 0 0 6px; }
#schedule { margin: 0; padding: 0; list-style: none; counter-reset: s; }
#schedule li { counter-increment: s; position: relative; padding: 10px 0 10px 40px; border-bottom: 1px solid rgba(163, 32, 42, .4); }
#schedule li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--pine); color: var(--white); font: 700 14px/28px var(--display); text-align: center; }
#schedule strong { display: block; font-family: var(--display); color: var(--cranberry); font-size: 18px; }
#notes { margin: 14px 0 0; padding: 12px 16px 12px 34px; background: var(--stone); font-size: 15px; }
#notes li + li { margin-top: 6px; }

/* the back of the calendar: worked example and how it works */
.back { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--cream); margin-bottom: 48px; box-shadow: 0 18px 30px -20px rgba(46, 28, 18, .6); border-bottom: 10px solid var(--pine); }
.back section { padding: 32px 36px 28px; }
.back section + section { border-left: 2px dotted rgba(46, 28, 18, .4); }
.back ul { padding-left: 1.1em; }
.back li { margin-bottom: .55em; }
.back li::marker { color: var(--cranberry); }
#example h2::before, #how h2::before { display: block; font: 700 12px/1.6 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--pine); }
#example h2::before { content: "No. 1"; }
#how h2::before { content: "No. 2"; }

/* the shop links: a butcher-paper parcel tied with twine */
.shop-guide { position: relative; background: var(--stone); padding: 34px 40px 26px; margin: 0 0 56px; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, rgba(46, 28, 18, .035) 0 2px, transparent 2px 6px); box-shadow: 0 14px 26px -18px rgba(46, 28, 18, .7); }
.shop-guide::before, .shop-guide::after { content: ""; position: absolute; background: repeating-linear-gradient(45deg, var(--cranberry) 0 5px, var(--cream) 5px 9px); }
.shop-guide::before { top: 0; bottom: 0; right: 120px; width: 5px; }
.shop-guide::after { left: 0; right: 0; bottom: 28px; height: 5px; background: repeating-linear-gradient(-45deg, var(--cranberry) 0 5px, var(--cream) 5px 9px); }
.shop-guide > * { position: relative; z-index: 1; max-width: 860px; }
.shop-guide p { font-size: 17.5px; }
.disclosure { font-size: 14.5px !important; padding: 10px 14px; background: var(--cream); border-left: 4px solid var(--gold); margin-bottom: 18px; }

/* questions, in two ruled columns */
#faq { padding-bottom: 32px; columns: 2; column-gap: 56px; column-rule: 1px solid rgba(163, 32, 42, .4); }
#faq h2 { column-span: all; }
#faq h3 { font-size: 19px; margin: 0 0 4px; break-after: avoid; color: var(--pine); }
#faq p { margin: 0 0 22px; break-inside: avoid; }

footer { padding-top: 22px !important; padding-bottom: 40px !important; font-size: 15px; }
footer::before { content: ""; display: block; height: 4px; margin-bottom: 18px; background: repeating-linear-gradient(90deg, var(--cranberry) 0 10px, var(--cream) 10px 14px); border-radius: 2px; }

@media (max-width: 980px) {
  .top { grid-template-columns: 1fr; }
  .picture { max-width: 520px; }
  .tool { grid-template-columns: 1fr; gap: 28px; }
  .slip { position: relative; top: 0; }
}
@media (max-width: 760px) {
  .back { grid-template-columns: 1fr; }
  .back section + section { border-left: 0; border-top: 2px dotted rgba(46, 28, 18, .4); }
  #faq { columns: 1; }
  .figs { grid-template-columns: 1fr; }
  .fig, .fig:first-child { padding: 12px 0; }
  .fig + .fig { border-left: 0; border-top: 1px solid rgba(163, 32, 42, .45); }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wall > header, main, footer { padding: 0 14px; }
  .top { padding-top: 40px !important; }
  .picture { margin-top: 30px; }
  .slip { padding: 22px 16px 16px; transform: none; }
  .sheet { padding: 24px 14px 20px; }
  .day { min-height: 56px; padding: 4px; }
  .day b { font-size: 16px; }
  .day small { display: none; }
  .day b i { display: block; font: 700 10px/1.2 var(--text); text-transform: uppercase; letter-spacing: .06em; }
  .picture { max-width: 330px; margin-left: auto; margin-right: auto; }
  .greet { font-size: 22px; }
  .stamp { width: 26px; height: 17px; right: 2px; top: auto; bottom: 3px; }
  .ring { left: -9px; top: -9px; width: 46px; height: 36px; }
  .dow { font-size: 10px; letter-spacing: .04em; }
  .axis { margin-left: 14px; }
  .track { margin-left: 14px; }
  .lane { grid-template-columns: 1fr; padding: 6px 0; }
  .lane-name { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
  .lane-name small { display: inline; }
  .back section { padding: 24px 18px; }
  .shop-guide { padding: 26px 18px 44px; }
  .shop-guide::before { right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .bar, .pin { transition: none; }
  .ring { animation: none; }
}
