/* Gentleman Jim reference — archival watercolour theme */
@font-face { font-family: "Fell"; src: url("../fonts/im-fell-english-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fell"; src: url("../fonts/im-fell-english-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fell SC"; src: url("../fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F6EEDC;
  --paper-deep: #ECDFC2;
  --card: #FBF6EA;
  --ink: #262219;
  --ink-soft: #544C3A;
  --olive: #2F3322;
  --olive-mid: #444A31;
  --ochre: #C68A2F;
  --ochre-deep: #8E5F17;
  --bottle: #1F4A34;
  --rule: rgba(47, 51, 34, 0.2);
  --display: "Fell", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display-sc: "Fell SC", "Fell", Georgia, serif;
  --text: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --measure: 70ch;
  --gap: clamp(20px, 4vw, 40px);
}

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bottle); text-decoration: underline; text-decoration-color: rgba(31, 74, 52, 0.35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 2px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gap)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* notice + masthead */
.notice { background: var(--ink); color: var(--paper-deep); font-size: 13.5px; line-height: 1.45; }
.notice__inner { padding-top: 8px; padding-bottom: 8px; }
.masthead { background: var(--olive) url("../image/site/texture-pinstripe.webp") center / cover; color: var(--paper); position: relative; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.masthead__brand { display: flex; align-items: center; gap: 14px; color: var(--paper); text-decoration: none; }
.masthead__logo { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--ochre); background: var(--card); object-fit: cover; }
.masthead__name { font-family: var(--display); font-size: 25px; line-height: 1.05; display: flex; flex-direction: column; }
.masthead__sub { font-family: var(--text); font-size: 12.5px; letter-spacing: 0.02em; color: #D9C9A4; margin-top: 4px; }
.masthead__nav ul { display: flex; gap: 4px; list-style: none; }
.masthead__nav a { display: block; padding: 8px 12px; color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; }
.masthead__nav a:hover { color: #fff; border-bottom-color: rgba(198, 138, 47, 0.5); }
.masthead__nav a[aria-current="page"] { border-bottom-color: var(--ochre); color: #fff; }
.masthead__menu { display: none; align-items: center; gap: 10px; background: none; border: 1px solid rgba(246, 238, 220, 0.4); color: var(--paper); font: 500 15px var(--text); padding: 8px 14px; border-radius: 3px; cursor: pointer; }
.masthead__menu-bars, .masthead__menu-bars::before, .masthead__menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.masthead__menu-bars::before, .masthead__menu-bars::after { content: ""; position: absolute; left: 0; }
.masthead__menu-bars::before { top: -6px; }
.masthead__menu-bars::after { top: 6px; }
.masthead__menu[aria-expanded="true"] .masthead__menu-bars { background: transparent; }
.masthead__menu[aria-expanded="true"] .masthead__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.masthead__menu[aria-expanded="true"] .masthead__menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { background: var(--olive); border-top: 1px solid rgba(246, 238, 220, 0.15); }
.drawer ul { list-style: none; padding-top: 8px; padding-bottom: 16px; }
.drawer a { display: block; padding: 11px 0; color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(246, 238, 220, 0.1); font-size: 16px; }
.drawer a[aria-current="page"] { color: var(--ochre); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; }
.hero__text { max-width: 34rem; padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.4vw, 76px); line-height: 0.98; letter-spacing: -0.01em; color: var(--olive); }
.hero__note { margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 31rem; }
.hero__note strong { color: var(--ink); }

/* the record card: the one memorable element */
.record { position: relative; margin-top: 28px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 0 0 5px var(--card), 0 0 0 6px var(--rule), 0 18px 40px -24px rgba(38, 34, 25, 0.55); padding: 18px 22px 16px; max-width: 30rem; }
.record__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; line-height: 1.45; }
.record__row:last-of-type { border-bottom: 0; }
.record dt { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--ochre-deep); }
.record dd { color: var(--ink); font-weight: 500; }
.record__stamp { position: absolute; right: 16px; top: -22px; transform: rotate(-8deg); font-family: var(--display-sc); font-size: 26px; line-height: 1; color: #9A3B24; border: 3px double #9A3B24; padding: 6px 14px 8px; border-radius: 4px; background: rgba(251, 246, 234, 0.9); opacity: .92; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.article { max-width: var(--measure); }
.intro .lead, .lead { font-size: 19px; line-height: 1.65; color: var(--ink); }
.block { padding-top: 12px; }
.article h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; color: var(--olive); margin: 44px 0 16px; padding-top: 18px; border-top: 1px solid var(--rule); }
.article p { margin: 0 0 18px; }
.article p:last-child { margin-bottom: 0; }
.article strong { font-weight: 700; }

/* tables as ledgers */
.table-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--rule); background: var(--card); -webkit-overflow-scrolling: touch; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.article thead th { background: var(--olive); color: var(--paper); font-family: var(--display); font-weight: 400; font-size: 17px; text-align: left; padding: 11px 14px; }
.article tbody th, .article tbody td { padding: 10px 14px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.article tbody th { font-weight: 600; color: var(--ink); }
.article tbody tr:nth-child(even) { background: rgba(236, 223, 194, 0.45); }

/* figures */
.figure { margin: 28px 0; }
.figure img { border: 1px solid var(--rule); background: var(--card); box-shadow: 0 16px 34px -26px rgba(38, 34, 25, 0.7); margin: 0 auto; }
.figure--portrait img { max-width: min(360px, 100%); }
.figure figcaption { margin-top: 10px; font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-soft); text-align: center; }

/* faq */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ochre-deep); border-bottom: 2px solid var(--ochre-deep); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 18px; color: var(--ink-soft); }

/* table of contents */
.toc ol { list-style: none; counter-reset: none; }
.toc a { text-decoration: none; color: var(--paper); display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.4; }
.toc a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ochre); }
.toc--desk { display: none; }
.toc--mobile { background: var(--olive); color: var(--paper); padding: 0 18px; border-radius: 3px; }
.toc--mobile summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-size: 20px; }
.toc--mobile ol { padding-bottom: 14px; }
.toc__title { font-family: var(--display); font-size: 22px; margin-bottom: 8px; color: var(--paper); }

/* trust block */
.trust { margin-top: 48px; padding: 20px 22px; border: 1px solid var(--rule); background: var(--card); }
.trust__title { font-family: var(--display); font-size: 21px; color: var(--olive); margin-bottom: 8px; }
.trust__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* inner pages */
.page-banner { margin-top: 28px; }
.page-banner img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.crumbs { margin-top: 28px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.05; color: var(--olive); margin: 8px 0 22px; }
.article--service { padding-bottom: 64px; }
.article--service h2:first-of-type { margin-top: 36px; }

/* help block */
.help { background: var(--paper-deep) url("../image/site/help-bg.webp") center 40% / cover; position: relative; }
.help::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 238, 220, 0.96) 0%, rgba(246, 238, 220, 0.9) 48%, rgba(246, 238, 220, 0.2) 100%); }
.help__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.help__title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; color: var(--olive); margin-bottom: 12px; }
.help__text p { max-width: 36rem; margin-bottom: 20px; }
.help__art { width: min(300px, 70%); justify-self: center; filter: drop-shadow(0 18px 20px rgba(38, 34, 25, 0.25)); }
.button { display: inline-block; background: var(--olive); color: var(--paper); text-decoration: none; padding: 12px 22px; border-radius: 3px; font-weight: 600; font-size: 15.5px; box-shadow: inset 0 -2px 0 var(--ochre); }
.button:hover { background: var(--bottle); color: #fff; }

/* footer */
.footer { background: var(--olive) url("../image/site/texture-pinstripe.webp") center / cover; color: #DDD0B3; font-size: 15px; }
.footer a { color: var(--paper); text-decoration-color: rgba(246, 238, 220, 0.35); }
.footer a[aria-current="page"] { color: var(--ochre); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer__brand img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ochre); background: var(--card); margin-bottom: 16px; }
.footer__about p { max-width: 30rem; margin-bottom: 12px; }
.footer__age { display: flex; align-items: center; gap: 10px; }
.footer__badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ochre); color: var(--paper); font-weight: 700; font-size: 14px; flex: none; }
.footer__head { font-family: var(--display); font-size: 21px; color: var(--paper); margin-bottom: 10px; }
.footer__col ul { list-style: none; }
.footer__col li { padding: 4px 0; }
.footer__legal { border-top: 1px solid rgba(246, 238, 220, 0.15); padding-top: 18px; padding-bottom: 24px; font-size: 13.5px; color: #BFB294; }

/* responsive */
@media (max-width: 799px) {
  .hero__media { display: block; height: 62vw; max-height: 420px; }
  .hero__media img { object-position: 80% 50%; }
  .masthead__name { font-size: 21px; white-space: nowrap; }
  .masthead__logo { width: 50px; height: 50px; }
  .masthead__inner { min-height: 72px; gap: 12px; }
  .hero__text { padding-top: 28px; }
  .record { margin-right: 6px; }
  .record__row { grid-template-columns: 6rem 1fr; }
}
@media (min-width: 800px) {
  .hero { min-height: 620px; display: flex; align-items: center; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { object-position: right center; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 238, 220, 0.94) 0%, rgba(246, 238, 220, 0.82) 38%, rgba(246, 238, 220, 0) 62%); pointer-events: none; }
  .hero__inner { z-index: 1; }
  .help__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (max-width: 959px) {
  .masthead__nav { display: none; }
  .masthead__menu { display: inline-flex; }
}
@media (min-width: 960px) {
  .drawer { display: none !important; }
}
@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
  .toc--mobile { display: none; }
  .toc--desk { display: block; position: sticky; top: 20px; background: var(--olive) url("../image/site/texture-rail.webp") center / cover; padding: 22px 24px; border-radius: 3px; max-height: calc(100vh - 40px); overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
