/* Graniteware: speckled enamelware for Recipes by Mom */
@font-face { font-family: "Young Serif"; src: url(../fonts/YoungSerif-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/InstrumentSans-latin-var.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/InstrumentSans-italic-latin-var.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

:root {
	--enamel: #F6F7F2;
	--ink: #18202E;
	--muted: #4E5866;
	--cobalt: #1F3E8C;
	--cobalt-deep: #152C66;
	--mustard: #E9B23C;
	--sage: #DCE6DF;
	--line: #C9D2CC;
	--white: #FFFFFF;
	--display: "Young Serif", Georgia, serif;
	--text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rim: 6px;
	--round: 22px;
	--gutter: clamp(16px, 4vw, 40px);
	--wide: 1180px;
	--speckle:
		radial-gradient(circle at 20% 30%, rgba(255,255,255,.85) 0 1.3px, transparent 1.8px),
		radial-gradient(circle at 70% 60%, rgba(233,238,248,.7) 0 1px, transparent 1.6px),
		radial-gradient(circle at 40% 80%, rgba(255,255,255,.55) 0 2px, transparent 2.6px),
		radial-gradient(circle at 85% 15%, rgba(10,25,70,.65) 0 1.6px, transparent 2.2px),
		radial-gradient(circle at 10% 75%, rgba(201,211,234,.6) 0 .9px, transparent 1.4px);
	--speckle-size: 23px 23px, 31px 29px, 47px 43px, 37px 41px, 19px 17px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--enamel);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--text);
	font-stretch: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.masthead {
	background-color: var(--cobalt);
	background-image: var(--speckle);
	background-size: var(--speckle-size);
	color: var(--enamel);
	padding: 0 var(--gutter);
}
.masthead__row {
	max-width: var(--wide); margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 0 14px;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--enamel); text-decoration: none; }
.wordmark:hover { color: var(--white); }
.wordmark__plate { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 0 rgba(10,25,70,.5)); }
.wordmark__name { white-space: nowrap; font: 400 clamp(1.45rem, 3.6vw, 2rem)/1 var(--display); letter-spacing: -.01em; }
.wordmark__name em { font-style: normal; font-family: var(--text); font-size: .5em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; vertical-align: .45em; margin: 0 .15em; color: var(--mustard); }
.masthead__search {
	background: var(--cobalt);
	color: var(--enamel); font-size: .9rem; font-weight: 600; text-decoration: none;
	border: 2px solid rgba(246,247,242,.55); border-radius: 999px; padding: 6px 14px; white-space: nowrap;
}
.masthead__search:hover { background: var(--enamel); color: var(--cobalt); }
.shelfnav { max-width: var(--wide); margin: 0 auto; }
.shelfnav__list {
	list-style: none; margin: 0; padding: 0 0 16px;
	display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.shelfnav__list::-webkit-scrollbar { display: none; }
.shelfnav__list a {
	display: block; white-space: nowrap; text-decoration: none;
	background: var(--enamel); color: var(--ink);
	font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
	box-shadow: inset 0 -3px 0 var(--line);
}
.shelfnav__list a:hover, .shelfnav__list .current-menu-item a, .shelfnav__list .current-post-ancestor a { background: var(--mustard); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); color: var(--ink); }

.main { padding: 0 var(--gutter); }
.section-title { font: 400 clamp(1.6rem, 3.4vw, 2.2rem)/1.15 var(--display); margin: 0 0 18px; letter-spacing: -.01em; }

/* ---------- timer strip (signature) ---------- */
.timer {
	display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start;
	margin: 22px 0; padding: 0;
	border: var(--rim) solid var(--cobalt); border-radius: 18px; background: var(--white);
	overflow: hidden; width: fit-content; max-width: 100%;
}
.timer__cell { padding: 10px 18px 11px; border-left: 2px dashed var(--line); }
.timer__cell:first-child { border-left: 0; }
.timer dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timer dd { margin: 0; font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.timer__cell--total { background: var(--mustard); }
.timer__cell--total dt { color: var(--ink); }
.timer--small { grid-template-columns: repeat(2, minmax(0, auto)); margin: 12px 0 0; border-width: 3px; border-radius: 12px; }
.timer--small .timer__cell { padding: 5px 11px 6px; }
.timer--small dt { font-size: .64rem; }
.timer--small dd { font-size: .9rem; }

.btn {
	display: inline-block; text-decoration: none; cursor: pointer;
	background: var(--cobalt); color: var(--enamel);
	font: 600 1rem/1 var(--text); padding: 14px 22px; border-radius: 999px; border: 0;
	box-shadow: 0 4px 0 var(--cobalt-deep);
}
.btn:hover { background: var(--cobalt-deep); color: var(--white); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cobalt-deep); }
.btn--quiet { background: var(--sage); color: var(--ink); box-shadow: 0 4px 0 var(--line); }

/* ---------- front: lead ---------- */
.lead {
	max-width: var(--wide); margin: 34px auto 0;
	display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(22px, 4vw, 56px); align-items: center;
}
.lead__plate img, .recipe-cover img, .dish__plate img {
	border-radius: var(--round); border: var(--rim) solid var(--cobalt-deep);
	box-shadow: 0 10px 0 -2px var(--sage);
	width: 100%;
}
.lead__eyebrow, .recipe-head__cat, .dish__cat, .aisle__kicker {
	margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt);
}
.recipe-head__cat a { text-decoration: none; }
.lead__title { font: 400 clamp(2rem, 4.6vw, 3.3rem)/1.06 var(--display); margin: 0 0 14px; letter-spacing: -.015em; }
.lead__title a { color: var(--ink); text-decoration: none; }
.lead__title a:hover { color: var(--cobalt); }
.lead__dek { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 46ch; }

/* ---------- front: by the clock ---------- */
.clock { max-width: var(--wide); margin: 64px auto 0; }
.clock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; }
.clock__hint { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.clock__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clock__col {
	background: var(--white); border-radius: var(--round); padding: 20px 22px 18px;
	border-top: 12px solid var(--cobalt);
	box-shadow: 0 0 0 2px var(--line) inset;
}
.clock__col--middle { border-top-color: var(--mustard); }
.clock__col--slow { border-top-color: var(--ink); }
.clock__label { font: 400 1.35rem/1.2 var(--display); margin: 0; }
.clock__sub { margin: 4px 0 12px; font-size: .9rem; color: var(--muted); }
.clock__list { list-style: none; margin: 0; padding: 0; }
.clock__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 2px dotted var(--line); font-weight: 500; line-height: 1.35; }
.clock__list a { color: var(--ink); text-decoration: none; }
.clock__list a:hover { color: var(--cobalt); text-decoration: underline; }
.clock__list span { flex: none; font-size: .85rem; font-weight: 700; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.clock__empty { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- cards ---------- */
.more { max-width: var(--wide); margin: 64px auto 0; }
.more--aisle { margin-top: 28px; }
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.dish__plate { display: block; }
.dish__plate img { border-width: 4px; border-radius: 16px; box-shadow: 0 7px 0 -2px var(--sage); }
.dish__body { padding: 16px 2px 0; }
.dish__title { font: 400 1.32rem/1.2 var(--display); margin: 0; }
.dish__title a { color: var(--ink); text-decoration: none; }
.dish__title a:hover { color: var(--cobalt); text-decoration: underline; }
.dish--page { border: 2px solid var(--line); border-radius: 16px; padding: 4px 16px 16px; }

/* ---------- pantry shelves ---------- */
.pantry { max-width: var(--wide); margin: 64px auto 0; }
.pantry__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jar a {
	display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; height: 100%;
	background: var(--sage); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink);
	border-bottom: 5px solid #BFCDC3;
}
.jar a:hover { background: #CFDCD3; }
.jar__name { font: 400 1.2rem/1.2 var(--display); }
.jar__count { grid-row: 1; grid-column: 2; font-size: .8rem; font-weight: 700; color: var(--cobalt); white-space: nowrap; align-self: center; }
.jar__desc { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* ---------- recipe page ---------- */
.recipe-page { max-width: 760px; margin: 0 auto; }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 22px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.recipe-head__title { font: 400 clamp(2.1rem, 5.4vw, 3.4rem)/1.05 var(--display); margin: 0 0 14px; letter-spacing: -.015em; }
.recipe-head__dek { font-size: 1.15rem; color: var(--muted); margin: 0 0 14px; }
.byline { font-size: .9rem; color: var(--muted); margin: 0; }
.byline a { color: var(--ink); font-weight: 600; }
.byline .byline__jump { color: var(--cobalt); }
.recipe-cover { margin: 8px 0 34px; }
.recipe-body { font-size: 1.08rem; }
.recipe-body > p, .recipe-body > ul, .recipe-body > ol { max-width: 66ch; }
.recipe-body h2 { font: 400 1.75rem/1.2 var(--display); margin: 2.1em 0 .5em; letter-spacing: -.01em; }
.recipe-body h3 { font-size: 1.12rem; font-weight: 700; margin: 1.6em 0 .4em; }
.recipe-body li { margin: .35em 0; }
.recipe-body li::marker { color: var(--cobalt); }

.rbm-recipe {
	margin: 2.2em 0; padding: 6px clamp(18px, 4vw, 34px) 26px;
	background: var(--white); border: var(--rim) solid var(--cobalt); border-radius: 28px;
	scroll-margin-top: 16px;
}
.rbm-recipe h2 { margin-top: 1em; }
.rbm-yield { margin: -.2em 0 1em; font-weight: 600; color: var(--muted); }
.rbm-ing { background: var(--sage); border-radius: 18px; padding: 6px 20px 12px; }
.rbm-ing__group { font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin: 1.1em 0 .2em !important; }
.rbm-ing__list { list-style: none; padding: 0; margin: .6em 0; }
.rbm-ing__list li { position: relative; padding: 8px 0 8px 32px; margin: 0; border-bottom: 2px dotted #BFCDC3; }
.rbm-ing__list li:last-child { border-bottom: 0; }
.rbm-ing__list li::before {
	content: ""; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px;
	border: 3px solid var(--cobalt); border-radius: 50%; background: var(--enamel);
}
.rbm-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.rbm-steps li { counter-increment: step; position: relative; padding: 4px 0 18px 58px; margin: 0; min-height: 50px; }
.rbm-steps li::before {
	content: counter(step); position: absolute; left: 0; top: 0;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--cobalt); color: var(--enamel);
	font: 400 1.2rem/40px var(--display); text-align: center;
	box-shadow: 0 3px 0 var(--cobalt-deep);
}
.rbm-step__name { display: block; font-weight: 700; }
.rbm-safe { margin: 4px 0 0; padding: 12px 16px; border-radius: 14px; background: #FDF3DC; border-left: 6px solid var(--mustard); font-size: 1rem; }
.rbm-allergen { margin: 2.4em 0 0; padding: 4px 22px 14px; border-radius: 18px; border: 3px dashed var(--cobalt); }
.rbm-allergen h2 { font-size: 1.3rem; margin-top: .8em; }
.recipe-made { margin: 2.4em 0 0; padding-top: 16px; border-top: 2px solid var(--line); font-size: .92rem; color: var(--muted); }
.more--after { margin-top: 72px; }

/* ---------- archives / search / pages ---------- */
.aisle { max-width: var(--wide); margin: 0 auto; padding-bottom: 6px; }
.aisle .crumbs { margin-bottom: 26px; }
.aisle__kicker { padding-top: 34px; }
.aisle .crumbs + .aisle__kicker { padding-top: 0; }
.aisle__title { font: 400 clamp(2.1rem, 5vw, 3.2rem)/1.08 var(--display); margin: 0 0 12px; }
.aisle__desc { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin: 0 0 18px; }
.aisle--lost { max-width: 720px; padding-bottom: 20px; }
.empty { font-size: 1.05rem; }
.finder { margin: 10px 0 22px; max-width: 560px; }
.finder__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.finder__row { display: flex; gap: 10px; }
.finder__input {
	flex: 1; min-width: 0; font: 400 1rem var(--text); color: var(--ink);
	padding: 12px 16px; border: 3px solid var(--cobalt); border-radius: 999px; background: var(--white);
}
.finder__btn { padding: 12px 20px; }
.pager ul { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pager a, .pager span { display: block; padding: 8px 14px; border-radius: 999px; background: var(--sage); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--cobalt); color: var(--enamel); }

.house-page { max-width: 720px; margin: 0 auto; }
.house-page__title { font: 400 clamp(2.1rem, 5vw, 3rem)/1.08 var(--display); margin: 0 0 20px; }
.house-page__body { font-size: 1.07rem; }
.house-page__body h2 { font: 400 1.55rem/1.2 var(--display); margin: 1.8em 0 .4em; }
.house-page__body li { margin: .35em 0; }

/* ---------- footer tray ---------- */
.tray {
	position: relative;
	margin-top: 90px; padding: 72px var(--gutter) 22px;
	background: var(--cobalt-deep);
	color: #E3E8F4;
}
.tray::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px;
	background-color: var(--cobalt);
	background-image: var(--speckle);
	background-size: var(--speckle-size);
	border-bottom: 4px solid #0F2253;
}
.tray a { color: var(--white); }
.tray__inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1.1fr 1fr; gap: 30px; }
.tray__inner p { margin: 0 0 10px; font-size: .95rem; }
.tray__name { font: 400 1.8rem/1 var(--display) !important; color: var(--enamel); margin-bottom: 14px !important; }
.tray__name em { font: 600 .5em var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); vertical-align: .4em; }
.tray__label { font-size: .75rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.tray__links ul { list-style: none; margin: 0; padding: 0; }
.tray__links li { margin: 0 0 8px; }
.tray__links a { font-weight: 600; text-decoration: none; }
.tray__links a:hover { text-decoration: underline; }
.tray__base { max-width: var(--wide); margin: 34px auto 0; padding-top: 14px; border-top: 1px solid rgba(227,232,244,.25); font-size: .82rem; color: #C3CBE0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.clock__cols, .pantry__list { grid-template-columns: 1fr 1fr; }
	.clock__col--slow { grid-column: 1 / -1; }
	.tray__inner { grid-template-columns: 1fr 1fr; }
	.tray__about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	.lead { grid-template-columns: 1fr; margin-top: 22px; }
	.clock__cols, .pantry__list { grid-template-columns: 1fr; }
	.dishes { grid-template-columns: 1fr; gap: 28px; }
	.timer { grid-template-columns: 1fr 1fr; width: 100%; }
	.timer__cell:nth-child(3) { border-left: 0; }
	.timer__cell:nth-child(n+3) { border-top: 2px dashed var(--line); }
	.timer--small { grid-template-columns: repeat(2, auto); width: fit-content; }
	.timer--small .timer__cell { border-top: 0 !important; }
	.timer--small .timer__cell:nth-child(2) { border-left: 2px dashed var(--line); }
	.rbm-steps li { padding-left: 50px; }
	.recipe-page .rbm-recipe { margin-left: -6px; margin-right: -6px; padding: 4px 14px 20px; border-width: 4px; border-radius: 22px; }
	.rbm-ing { padding: 4px 14px 8px; }
	.rbm-ing__list li { padding-left: 28px; }
	.rbm-steps li::before { width: 36px; height: 36px; line-height: 36px; font-size: 1.05rem; }
	.tray__inner { grid-template-columns: 1fr; }
	.masthead__search { font-size: .82rem; padding: 5px 11px; }
	.wordmark { gap: 9px; }
	.masthead__more { display: none; }
	.wordmark__plate { width: 32px; height: 32px; }
	.wordmark__name { font-size: 1.38rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
	.masthead, .tray, .more--after, .byline__jump, .recipe-cover { display: none; }
	.rbm-recipe { border-width: 2px; }
}
