/* Gentleman Jim guide — claret & brass theme */
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ivory: #F8F4EC;
  --ivory-deep: #EFE6D6;
  --white: #FFFFFF;
  --ink: #1F1A1C;
  --ink-soft: #5A5053;
  --claret: #6B1F2A;
  --claret-deep: #2B1216;
  --claret-soft: #F3E4E3;
  --brass: #B8893B;
  --brass-light: #E7CC93;
  --rule: rgba(31, 26, 28, 0.12);
  --radius: 12px;
  --shadow: 0 18px 40px -28px rgba(43, 18, 22, 0.55);
  --display: "DM Serif Display", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gap: 1cm;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { background: var(--ivory); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.72; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--claret); text-decoration: underline; text-decoration-color: rgba(107, 31, 42, 0.3); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: var(--wrap); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* masthead: light, sticky, brass top rule */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(248, 244, 236, 0.94); backdrop-filter: saturate(1.2) blur(8px); border-top: 4px solid var(--brass); border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.masthead__brand { display: flex; align-items: center; gap: 12px; color: var(--claret); text-decoration: none; }
.masthead__logo { width: 52px; height: 52px; border-radius: 14px; background: var(--white); object-fit: cover; box-shadow: 0 0 0 1px var(--rule), 0 6px 14px -8px rgba(43, 18, 22, 0.5); }
.masthead__name { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: 0.005em; }
.masthead__nav ul { display: flex; gap: 6px; list-style: none; }
.masthead__nav a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.masthead__nav a:hover { background: var(--claret-soft); color: var(--claret); }
.masthead__nav a[aria-current="page"] { background: var(--claret); color: var(--white); }
.masthead__menu { display: none; align-items: center; gap: 10px; background: var(--claret); border: 0; color: var(--white); font: 600 15px var(--text); padding: 9px 16px; border-radius: 999px; 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(--ivory); border-top: 1px solid var(--rule); max-height: calc(100vh - 80px); overflow-y: auto; }
.drawer ul { list-style: none; padding-top: 8px; padding-bottom: 18px; }
.drawer a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); font-size: 16px; }
.drawer a[aria-current="page"] { color: var(--claret); font-weight: 600; }

/* hero: full-bleed picture with a floating card */
.hero { position: relative; overflow: hidden; background: var(--ivory-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; }
.hero__text { max-width: 34rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 40px); border-top: 6px solid var(--claret); }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.8vw, 70px); line-height: 1; color: var(--claret); }
.hero__note { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.hero__note strong { color: var(--ink); }

/* layout & type */
.layout { padding-top: 32px; padding-bottom: 64px; }
.article { max-width: none; }
.article--service { margin: 0; }
.intro .lead, .lead { font-size: 19px; line-height: 1.66; color: var(--ink); }
.article h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.3vw, 38px); line-height: 1.12; color: var(--claret); margin: 44px 0 16px; }
.article h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 12px; background: var(--brass); border-radius: 3px; }
.article p { margin: 0 0 18px; }
.article p:last-child { margin-bottom: 0; }
.article strong { font-weight: 600; }

/* tables */
.table-wrap { margin: 26px 0; overflow-x: auto; border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--rule), var(--shadow); -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(--claret); color: var(--white); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; text-align: left; padding: 13px 16px; }
.article tbody th, .article tbody td { padding: 12px 16px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.article tbody th { font-weight: 600; color: var(--claret); }
.article tbody tr:nth-child(even) { background: #FBF8F2; }

/* figures */
.figure { margin: 28px 0; }
.figure--float { float: right; clear: right; margin: 6px 0 16px 32px; }
.figure--wide { width: 44%; }
.figure--portrait { width: 200px; max-width: 30%; }
.figure--float img { width: 100%; }
.figure--small { width: auto; }
.figure--small img { width: auto; }
.block::after { content: ""; display: table; clear: both; }
.article h2, .table-wrap, .faq, .trust, .steps { clear: both; }
.figure img { border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--rule), var(--shadow); margin: 0 auto; }
.figure figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-soft); text-align: center; }

/* numbered steps */
.steps { margin: 10px 0 24px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 14px 18px 14px 62px; background: var(--white); border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--brass); color: var(--claret-deep); font-weight: 700; font-size: 15px; display: grid; place-items: center; }

/* faq as cards */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--white); border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
.faq__q { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--claret-soft); color: var(--claret); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.faq__item[open] .faq__q::after { content: "−"; background: var(--claret); color: var(--white); }
.faq__a { padding: 0 20px 18px; color: var(--ink-soft); }

/* table of contents */
.toc { margin: 28px 1cm 0; background: var(--white); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule), var(--shadow); border-left: 6px solid var(--claret); padding: 22px clamp(20px, 3vw, 36px); }
.toc__title { font-family: var(--display); font-size: 24px; line-height: 1.1; color: var(--claret); margin-bottom: 10px; }
.toc__list { list-style: none; columns: 3 15rem; column-gap: 36px; counter-reset: toc; }
.toc__list li { break-inside: avoid; counter-increment: toc; }
.toc__list a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); color: var(--brass); font-weight: 700; font-size: 13px; padding-top: 2px; }
.toc__list a:hover { color: var(--claret); }

/* trust block */
.trust { margin-top: 48px; padding: 20px 24px; border-radius: var(--radius); background: var(--claret-soft); }
.trust__title { font-family: var(--display); font-size: 22px; color: var(--claret); margin-bottom: 8px; }
.trust__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* notice on content pages */
.closed-notice { background: var(--claret-deep); color: var(--brass-light); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.closed-notice .container { padding-top: 11px; padding-bottom: 11px; display: flex; align-items: center; gap: 10px; }
.closed-notice .container::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brass); color: var(--claret-deep); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* inner pages */
.page-banner { margin-top: 28px; }
.page-banner img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.crumbs { margin-top: 26px; 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, 58px); line-height: 1.04; color: var(--claret); margin: 8px 0 22px; }
.article--service { padding-bottom: 64px; }

/* help block (background art unchanged) */
.help { background: var(--ivory-deep) url("../image/site/help-bg.webp") center 40% / cover; position: relative; }
.help::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43, 18, 22, 0.94) 0%, rgba(43, 18, 22, 0.86) 46%, rgba(43, 18, 22, 0.25) 100%); }
.help__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 52px; padding-bottom: 52px; color: #F3E9DA; }
.help__title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; color: var(--white); margin-bottom: 12px; }
.help__text p { max-width: 36rem; margin-bottom: 22px; }
.help__art { width: min(300px, 70%); justify-self: center; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.35)); }
.button { display: inline-block; background: var(--brass); color: var(--claret-deep); text-decoration: none; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15.5px; }
.button:hover { background: var(--brass-light); color: var(--claret-deep); }

/* footer */
.footer { background: var(--claret-deep); color: #D8C9C6; font-size: 15px; }
.footer a { color: #F6EDE4; text-decoration-color: rgba(246, 237, 228, 0.3); }
.footer a[aria-current="page"] { color: var(--brass-light); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 52px; padding-bottom: 32px; }
.footer__brand img { width: 76px; height: 76px; border-radius: 18px; background: var(--white); margin-bottom: 16px; }
.footer__about p { max-width: 30rem; margin-bottom: 12px; }
.footer__brand { display: inline-block; }
.footer__age { display: flex; align-items: center; gap: 10px; }
.footer__badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: var(--claret-deep); font-weight: 700; font-size: 14px; flex: none; }
.footer__head { font-family: var(--display); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.footer__col ul { list-style: none; }
.footer__col li { padding: 4px 0; }
.footer__legal { border-top: 1px solid rgba(246, 237, 228, 0.14); padding-top: 18px; padding-bottom: 26px; font-size: 13.5px; color: #B6A5A2; }

/* responsive */
@media (max-width: 699px) {
  .figure--float { float: none; width: auto; max-width: none; margin: 24px 0; }
  .figure--portrait img { max-width: 300px; margin: 0 auto; }
  .toc__list { columns: 1; }
  .toc { margin: 24px 16px 0; }
}
@media (max-width: 799px) {
  .hero__media { display: block; height: 58vw; max-height: 420px; }
  .hero__media img { object-position: 70% 50%; }
  .hero__inner { margin-top: -48px; padding-bottom: 8px; }
  .masthead__name { font-size: 22px; white-space: nowrap; }
  .masthead__logo { width: 46px; height: 46px; border-radius: 12px; }
  .masthead__inner { min-height: 66px; gap: 12px; }
}
@media (min-width: 800px) {
  .hero { min-height: 500px; display: flex; align-items: center; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { object-position: center; }
  .hero__inner { z-index: 1; padding-top: 48px; padding-bottom: 48px; }
  .help__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 1023px) {
  .masthead__nav { display: none; }
  .masthead__menu { display: inline-flex; }
}
@media (min-width: 1024px) {
  .drawer { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
