/* salmony.co.uk - one stylesheet for all three parts of the site.
   The look of each part (personal, work, cookbook) is set by the colour and
   font variables in the three "sec-" blocks below; everything else is shared. */

/* ---------- Fonts (stored in ../fonts, no outside font service) ---------- */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-text-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-text-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-caslon-text-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Caslon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/libre-caslon-display-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/jost-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/jost-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jost-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/jost-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/jost-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/jost-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/jost-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Michael's own handwriting, as used in the cookbook */
@font-face { font-family: "Salmony Michael"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/salmony-michael.woff2") format("woff2"); size-adjust: 190%; }

/* ---------- Colours and fonts for each part of the site ---------- */
:root {
  --paper: #ffffff;
  --mist: #f2f4f6;
  --ink: #1a2238;          /* blue-black fountain pen ink */
  --soft: #5b6475;
  --line: #d9dee5;
  --accent: #c8321e;       /* seal red */
  --link: #1a2238;
  --body-font: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --head-font: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --ui-font: "Libre Caslon Text", Georgia, serif;
  --body-size: 1.125rem;
  --leading: 1.7;
  --measure: 42rem;
  --head-weight: 400;
}
.sec-work {
  --ink: #0f2147;          /* PIC navy */
  --soft: #51607d;
  --accent: #ffc000;       /* PIC gold - rules and underlines only, never text */
  --link: #0f2147;
  --body-font: "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --head-font: "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --ui-font: "Jost", "Century Gothic", Arial, sans-serif;
  --body-size: 1.125rem;
  --leading: 1.6;
  --measure: 46rem;
  --head-weight: 300;
}
.sec-cookbook {
  --ink: #111111;
  --soft: #555555;
  --accent: #e31e24;       /* the red of the book cover */
  --link: #b3141a;
  --body-font: "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --head-font: "Salmony Michael", "Comic Sans MS", "Segoe Print", cursive;
  --ui-font: "Jost", "Century Gothic", Arial, sans-serif;
  --leading: 1.6;
  --measure: 44rem;
  --head-weight: 400;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font);
  font-size: var(--body-size); line-height: var(--leading); text-rendering: optimizeLegibility; }
img, video, iframe, audio { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

/* ---------- Header and navigation ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--head-font); font-size: 1.45rem; line-height: 1.2; }
.seal { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--accent);
  color: #fff; border-radius: 3px; font-family: "Libre Caslon Text", Georgia, serif; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.03em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-family: var(--ui-font); font-size: 1rem; text-decoration: none; padding: 0.3rem 0;
  border-bottom: 2px solid transparent; display: inline-block; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.sec-work .site-header { border-bottom: 3px solid var(--accent); }
.sec-work .brand { flex-direction: column; align-items: flex-start; gap: 0; }
.sec-work .brand-name { font-weight: 600; font-size: 1.3rem; }
.sec-work .brand-tag { font-size: 0.95rem; color: var(--soft); }

.sec-cookbook .site-header { background: var(--accent); border-bottom: 0; }
.sec-cookbook .site-header a { color: #fff; }
.sec-cookbook .brand-name { font-size: 1.7rem; }
.sec-cookbook .site-nav a:hover { border-bottom-color: rgba(255,255,255,0.5); }
.sec-cookbook .site-nav a[aria-current="page"] { border-bottom-color: #fff; }
.sec-cookbook .site-header a:focus-visible { outline-color: #fff; }

/* ---------- Page and prose ---------- */
.page { padding-top: 3rem; padding-bottom: 4rem; }
.page > h1, .page > .crumb, .page > .lede, .prose > * { max-width: min(100%, var(--measure)); }
.page-wide .prose > * { max-width: 100%; }
.crumb { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--soft); }
.crumb a { color: var(--soft); }
.crumb a::before { content: "\2190\00a0"; }
h1, h2, h3, h4 { font-family: var(--head-font); font-weight: var(--head-weight); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); margin: 0 0 1.5rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 2.4rem 0 0.8rem; }
h4 { font-size: 1.15rem; margin: 2rem 0 0.6rem; font-family: var(--body-font); font-weight: 700; }
.sec-work h4 { font-weight: 600; }
.sec-work strong, .sec-work b { font-weight: 600; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--soft); margin: 0 0 2rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure, .prose pre { margin: 0 0 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li > ul, .prose li > ol { margin: 0.4rem 0 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.2rem; color: var(--soft); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 2px; }
.prose img.left { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 45%; }
.prose img.right { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 45%; }
.prose img.centre { display: block; margin-left: auto; margin-right: auto; }
.prose h2, .prose h3, .prose h4, .prose hr, .prose figure, .prose .gallery, .prose table { clear: both; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 0.92rem; color: var(--soft); margin-top: 0.4rem; line-height: 1.45; }
.prose small { font-size: 0.9em; }
.prose pre { white-space: pre-wrap; font: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.5rem 0.8rem 0.5rem 0; text-align: left; vertical-align: top; }
.prose audio { width: 100%; }
.prose video { display: block; height: auto; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--mist); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Picture galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.5rem 1.2rem;
  margin: 2rem 0; max-width: 100% !important; align-items: start; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; }

/* Year navigation on long dated lists (lectures, publications) */
.years { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; padding: 0.8rem 0; margin: 0 0 1.5rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.98rem; max-width: 100% !important; }
.years a { text-decoration: none; font-variant-numeric: tabular-nums; }
.years a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.prose h2.year, .prose h3.year { font-size: 2rem; margin-top: 3.2rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.sec-work .prose h2.year, .sec-work .prose h3.year { border-top: 3px solid var(--accent); display: inline-block; padding-right: 2rem; }

/* Word cloud on the older lectures page */
.tagcloud { line-height: 1.9; }
.tagcloud span { margin-right: 0.5rem; white-space: nowrap; }
.tagcloud .t0 { font-size: 0.8rem; } .tagcloud .t1 { font-size: 0.9rem; } .tagcloud .t2 { font-size: 1rem; }
.tagcloud .t3 { font-size: 1.15rem; } .tagcloud .t4 { font-size: 1.3rem; } .tagcloud .t5 { font-size: 1.5rem; }
.tagcloud .t6 { font-size: 1.7rem; } .tagcloud .t7 { font-size: 1.9rem; } .tagcloud .t8 { font-size: 2.1rem; }
.tagcloud .t9 { font-size: 2.3rem; } .tagcloud .t10 { font-size: 2.6rem; }

/* ---------- Home page ---------- */
.home-intro { padding: 4.5rem 0 1rem; }
.home-intro h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.home-intro p { font-size: 1.35rem; line-height: 1.5; max-width: 36rem; margin: 0; color: var(--soft); }
.survived { padding: 3rem 0 1rem; }
.survived h2 { font-family: var(--body-font); font-style: italic; font-size: 1.15rem; color: var(--soft); margin: 0 0 0.5rem; }
.survived ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.survived li { border-bottom: 1px solid var(--line); }
.survived a { display: block; padding: 0.9rem 0; font-family: var(--head-font); font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  line-height: 1.15; text-decoration: none; }
.survived a:hover { color: var(--accent); }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; padding: 3.5rem 0 1rem; }
.doors h2 { font-size: 1.6rem; margin: 0 0 0.5rem; }
.doors h2 a { text-decoration: none; }
.doors p { margin: 0 0 0.6rem; font-size: 1.02rem; }
.doors ul { list-style: none; margin: 0; padding: 0; font-size: 1.02rem; }
.doors li { margin: 0.15rem 0; }
.warning { margin: 4rem 0 0; padding: 1.5rem 0 3rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--soft); }
.warning h2 { font-family: var(--body-font); font-size: 0.95rem; font-weight: 700; color: var(--accent); margin: 0 0 0.4rem; }
.warning p { max-width: 44rem; margin: 0 0 0.7rem; }
.warning img { vertical-align: middle; }

/* Lists of pages (stories index, private index) */
.index-list { list-style: none; padding: 0 !important; margin: 0 0 2rem; }
.index-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.index-list a { font-family: var(--head-font); font-size: 1.5rem; text-decoration: none; }
.index-list a:hover { color: var(--accent); }
.index-list span { display: block; color: var(--soft); font-size: 1rem; }

/* ---------- Work ---------- */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 3rem; align-items: start; padding-top: 3.5rem; }
.profile-head img { width: 100%; border-radius: 2px; }
.profile-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.4rem; }
.profile-head .post-nominals { color: var(--soft); margin: 0 0 1.5rem; font-size: 1.02rem; }
.profile-head .lede { color: var(--ink); max-width: 40rem; }
@media (max-width: 46rem) { .profile-head { grid-template-columns: 1fr; } .profile-head img { max-width: 13rem; } }
.button { display: inline-block; padding: 0.65rem 1.3rem; background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 3px; font-family: var(--ui-font); font-size: 1rem; }
.button:hover { background: #000; }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.quiet:hover { background: var(--mist); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0; }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; margin: 2rem 0;
  max-width: 100% !important; list-style: none; padding: 0 !important; }
.logo-wall li { margin: 0; display: grid; place-items: center; height: 6rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.logo-wall img { max-height: 100%; max-width: 100%; object-fit: contain; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2.5rem; margin: 2.5rem 0;
  padding: 1.8rem 0; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); max-width: 100% !important; }
.facts div { margin: 0; }
.facts dt { font-weight: 600; font-size: 1.05rem; }
.facts dd { margin: 0.2rem 0 0; color: var(--soft); font-size: 1rem; }

/* ---------- Cookbook ---------- */
.sec-cookbook h1, .sec-cookbook h2, .sec-cookbook h3 { letter-spacing: 0; line-height: 1.2; }
.cb-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; padding: 3.5rem 0 3rem; }
.cb-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); margin: 0 0 1.2rem; }
.cb-hero p { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.6rem; max-width: 30rem; }
.cb-hero img { width: 100%; box-shadow: 0 1.2rem 2.5rem -1rem rgba(0,0,0,0.45); border-radius: 2px; }
@media (max-width: 46rem) { .cb-hero { grid-template-columns: 1fr; } .cb-hero figure { max-width: 20rem; } }
.cb-hero figure { margin: 0; }
.sec-cookbook .button { background: var(--accent); font-size: 1.1rem; padding: 0.75rem 1.5rem; }
.sec-cookbook .button:hover { background: #b3141a; }
.sec-cookbook .button.quiet { background: transparent; color: var(--ink); }
.cb-band { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.cb-band > .wrap > h2 { margin-top: 0; font-size: clamp(2rem, 4.2vw, 3rem); }
.cb-band p { max-width: var(--measure); }
.cb-versus { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center; margin: 2rem 0; }
.cb-versus figure { margin: 0; }
.cb-versus img { width: 100%; border: 1px solid var(--line); background: #fff; }
.cb-versus figcaption, .cb-pages figcaption { font-family: var(--head-font); font-size: 1.7rem; margin-top: 0.6rem; color: var(--ink); }
@media (max-width: 40rem) { .cb-versus { grid-template-columns: 1fr; } }
.cb-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; margin: 2rem 0 0; }
.cb-points h3 { margin: 0 0 0.5rem; font-size: 2rem; color: var(--accent); }
.cb-points ul { margin: 0; padding-left: 1.2rem; }
.cb-points li { margin-bottom: 0.4rem; }
.cb-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin: 2rem 0 0; }
.cb-pages figure { margin: 0; }
.cb-pages img { width: 100%; border: 1px solid var(--line); background: #fff; box-shadow: 0 0.8rem 1.6rem -1rem rgba(0,0,0,0.4); }
.cb-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; margin: 2rem 0 0; }
.cb-quotes blockquote { margin: 0; padding: 1.4rem 1.5rem; border: 2px solid var(--ink); border-radius: 1.4rem 1.4rem 1.4rem 0.2rem; }
.cb-quotes p { font-family: var(--head-font); font-size: 1.6rem; line-height: 1.35; margin: 0 0 0.8rem; }
.cb-quotes footer { font-size: 0.95rem; color: var(--soft); }
.cb-buy { background: var(--mist); }
.cb-buy-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin: 2rem 0 0; }
.cb-buy-options > div { background: #fff; padding: 1.6rem; border-radius: 4px; border: 1px solid var(--line); }
.cb-buy-options h3 { margin: 0 0 0.5rem; font-size: 1.8rem; }
.cb-buy-options p { margin: 0 0 1rem; }
.cb-spoon { margin: 2.5rem 0 0; }
.cb-spoon img { width: 100%; max-width: 44rem; }
.cb-spoon figcaption { color: var(--soft); font-size: 0.98rem; }
.cb-chapters { columns: 3 15rem; column-gap: 3rem; margin-top: 2rem; }
.cb-chapters section { break-inside: avoid; margin-bottom: 2rem; }
.cb-chapters h2 { font-size: 2rem; margin: 0 0 0.6rem; color: var(--accent); }
.cb-chapters ul { list-style: none; margin: 0; padding: 0; }
.cb-chapters li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--line); padding: 0.18rem 0; }
.cb-chapters li span { color: var(--soft); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; font-size: 0.95rem; color: var(--soft); font-family: var(--ui-font); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.footer-row p { margin: 0; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--soft); }

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .prose img.left, .prose img.right { float: none; display: block; margin: 0 0 1rem; max-width: 100%; }
  .page { padding-top: 2rem; }
}
@media print { .site-header nav, .site-footer, .years, .skip { display: none; } a { text-decoration: none; } }
.years p { margin: 0; display: contents; }
.cb-chapters h2 small, .cb-chapters li small { font-family: var(--body-font); font-size: 0.9rem; color: var(--soft); }
.sec-cookbook .page h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); }
.profile-head figure { margin: 0; }
.gallery img { width: auto; max-width: 100%; }
.logo-wall li { display: flex; align-items: center; justify-content: center; }
.logo-wall a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-wall img { max-height: 4.2rem; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.prose::after { content: ""; display: block; clear: both; }
.prose > table { max-width: 100%; }
.prose { overflow-wrap: break-word; }

/* Parts that only the "fun" look of the personal pages shows (see fun.css) */
.fun-only { display: none; }

/* Quick-jump links at the top of a long page (e.g. Japan) */
.quickjump { line-height: 2; }
.quickjump span { margin: 0 0.4em; color: var(--soft, #777); }
.quickjump a { white-space: nowrap; }
