/* ARUÉ Design blog: built on the site tokens in /styles.css (dark emerald, Bodoni Moda + Jost). */
.blog {
  /* Light theme: the blog overrides the site's dark tokens. */
  --ink: #F7F5F0; --surface: #FFFFFF; --surface-2: #F3F0E8; --surface-3: #ECE7DC;
  --line: rgba(20,23,20,.10); --line-2: rgba(20,23,20,.2);
  --text: #141714; --text-2: #3B403C; --muted: #5E655F;
  --accent: #0B7A4E; --accent-deep: #0B7A4E; --ring: #141714;
  --shadow-card: 0 1px 2px rgba(20,23,20,.04), 0 12px 32px rgba(20,23,20,.06);
  background: radial-gradient(90% 50% at 85% -5%, #E3F1E8 0%, rgba(227,241,232,0) 60%), var(--ink); color: var(--text);
}
html:has(body.blog) { background: #F7F5F0; }
.blog .hdr::before { background: rgba(247,245,240,.92); backdrop-filter: saturate(1.2) blur(8px); }
.blog .nav a { color: var(--text-2); }
.blog .nav a:hover, .blog .nav a[aria-current="page"] { color: var(--text); }
.blog .btn--primary { background: #141714; color: #FFFFFF; }
.blog .btn--ghost { color: var(--text); border-color: var(--line-2); }
.blog .btn--ghost:hover { border-color: var(--text); }
.blog ::selection { background: #CDEBD9; }
.blog .hdr .nav a[aria-current="page"] { color: var(--text); }
.blog main { padding-top: var(--hdr-h); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }

/* ---------- Index ---------- */
.bidx__hero { padding: clamp(48px, 9vw, 112px) 20px clamp(28px, 4vw, 48px); }
.bidx__hero h1 { max-width: 15ch; font-family: var(--display); font-size: clamp(40px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.015em; }
.bidx__lead { max-width: 60ch; margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); font-weight: 300; }
@media (min-width: 768px) { .bidx__hero { padding-left: 40px; padding-right: 40px; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 14px; letter-spacing: .04em; cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t); }
.chips button span { font-size: 12px; color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.chips button[aria-pressed="true"] span { color: var(--ink); opacity: .6; }
.chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips__none { color: var(--muted); padding: 24px 0; }

.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.pc[hidden] { display: none; }
.pc article { position: relative; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-card); overflow: hidden; transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.pc__img { display: block; margin: 10px 10px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-3); }
.pc__img img { width: 100%; height: 100%; object-fit: cover; }
.pc__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.pc__cat { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.pc__t { font-family: var(--display); font-size: 24px; line-height: 1.18; }
.pc__t a { text-decoration: none; }
.pc__t a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.pc__t a:focus-visible { outline: none; }
.pc article:has(.pc__t a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.pc__d { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; font-weight: 300; }
.pc__m { margin: auto 0 0; padding-top: 6px; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .pc article:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,23,20,.05), 0 18px 40px rgba(20,23,20,.1); }
}
@media (min-width: 1100px) {
  .pc--big { grid-column: 1 / -1; }
  .pc--big article { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
  .pc--big .pc__img { margin: 12px; }
  .pc--big .pc__body { padding: 28px 40px 28px 18px; gap: 14px; }
  .pc--big .pc__t { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.08; }
  .pc--big .pc__d { font-size: 18px; }
}
.pc--big .pc__img { aspect-ratio: 16 / 9; }

.topics { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding-top: clamp(56px, 8vw, 96px); }
@media (min-width: 900px) { .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; box-shadow: var(--shadow-card); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.topic__k { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.topic h3 { font-family: var(--display); font-size: 26px; }
.topic > p:not(.topic__k) { margin: 8px 0 14px; color: var(--text-2); font-weight: 300; }
.topic ul { list-style: none; margin: 0; padding: 0; }
.topic li { border-top: 1px solid var(--line); }
.topic li a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; color: var(--text-2); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.topic li a:hover { color: var(--text); }

/* ---------- Call to action ---------- */
.cta { margin: clamp(56px, 8vw, 96px) 0 0; padding: clamp(28px, 5vw, 56px); border-radius: 20px; border: 1px solid rgba(11,122,78,.22); background: radial-gradient(90% 140% at 100% 0%, #DDF0E5, rgba(221,240,229,0) 60%), #FFFFFF; box-shadow: var(--shadow-card); }
.cta h2 { max-width: 20ch; font-family: var(--display); font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; }
.cta > p:not(.eyebrow) { max-width: 62ch; margin-top: 14px; color: var(--text-2); font-size: 17px; font-weight: 300; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 520px) { .cta__row .btn { width: 100%; } }

/* ---------- Article ---------- */
.post__head { padding-top: clamp(36px, 6vw, 72px); max-width: 980px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.post h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 72px); line-height: 1.04; letter-spacing: -.012em; max-width: 20ch; }
.post__dek { max-width: 62ch; margin-top: 18px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--text-2); font-weight: 300; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 13.5px; letter-spacing: .06em; color: var(--muted); }
.post__meta span + span::before { content: "·"; margin-right: 18px; }
.post__cover { margin-top: clamp(28px, 4vw, 44px); max-width: 1200px; }
.post__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.post__cover figcaption, .bidx__pic figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.post__cover figcaption a, .bidx__pic figcaption a { color: inherit; }
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 1100px) { .post__grid { grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; } }

.toc { align-self: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; }
.toc__k { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0 0 0 18px; }
.toc li { margin: 2px 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.toc a { display: inline-block; padding: 5px 0; color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--accent); }
@media (min-width: 1100px) { .toc { position: sticky; top: calc(var(--hdr-h) + 24px); border: 0; background: none; padding: 0; } .toc ol { padding-left: 0; list-style: none; border-left: 1px solid var(--line); } .toc li { padding-left: 14px; } }

.prose { font-size: 18.5px; line-height: 1.75; color: var(--text-2); font-weight: 300; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-family: var(--display); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; color: var(--text); scroll-margin-top: calc(var(--hdr-h) + 20px); }
.prose h3 { margin-top: 1.8em; font-family: var(--sans); font-weight: 500; font-size: 21px; line-height: 1.35; color: var(--text); scroll-margin-top: calc(var(--hdr-h) + 20px); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.pull { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); }
.pull p { font-family: var(--display); font-size: clamp(24px, 2.8vw, 30px); line-height: 1.3; color: var(--text); }
.box { margin: 1.8em 0; padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: #FFFFFF; box-shadow: var(--shadow-card); font-size: 17px; }
.box > * + * { margin-top: .7em; }
.box__k { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.box--check ul { list-style: none; padding-left: 0; }
.box--check li { position: relative; padding-left: 30px; }
.box--check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--accent); background: #EAF5EE; }
.box--check li::after { content: ""; position: absolute; left: 5px; top: calc(.42em + 3px); width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.box--note { border-color: rgba(11,122,78,.25); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; min-width: 520px; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.tbl tbody th { color: var(--text); font-weight: 500; }
.tbl tr:last-child > * { border-bottom: 0; }
.more { padding-top: clamp(56px, 8vw, 96px); }
.more h2 { font-family: var(--display); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }

/* ---------- Footer + phone dock ---------- */
.bft { margin-top: clamp(64px, 9vw, 120px); padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #FFFFFF; }
.bft__in { display: grid; gap: 28px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bft__brand { grid-column: 1 / -1; }
.bft__brand p { margin-top: 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bft h2 { margin: 0 0 4px; font: 500 12px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bft ul { list-style: none; margin: 0; padding: 0; }
.bft li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.bft li a:hover { color: var(--text); }
.bft__credit { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .bft { padding-bottom: 48px; } .bft__in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .bft__brand { grid-column: auto; } }
.dock--blog { grid-template-columns: auto 1fr; background: rgba(255,255,255,.97); border-color: var(--line); box-shadow: 0 10px 30px rgba(20,23,20,.16); }
.dock--blog .btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .dock--blog { display: none; } }
@media (prefers-reduced-motion: reduce) { .pc article, .chips button { transition: none; } }
@media (max-width: 600px) {
  .post h1 { font-size: 34px; line-height: 1.1; }
  .post__meta { gap: 4px 14px; }
  .post__meta span + span::before { content: none; }
  .bidx__hero h1 { font-size: 42px; }
}
.box--answer { border-color: rgba(11,122,78,.3); background: #EAF5EE; }
.box--answer p:not(.box__k) { color: var(--text); font-weight: 400; }
.about { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 16px; }
.about > * + * { margin-top: .5em; }

/* Blog home: hero with photo */
.bidx__hero--pic { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1100px) { .bidx__hero--pic { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.bidx__pic { margin: 0; }
.bidx__pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-card); }
.pull { border-left-color: var(--accent); }
.prose code { background: var(--surface-3); }
.bidx__hero--pic h1 { font-size: clamp(40px, 5vw, 72px); max-width: 13ch; }
/* Readable headings: Jost (sans) instead of the thin display serif; the logo keeps the serif. */
.bidx__hero h1, .post h1, .prose h2, .pc__t, .topic h3, .cta h2, .more h2, .pull p { font-family: var(--sans); font-weight: 600; letter-spacing: -.015em; }
.bidx__hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.06; max-width: 16ch; }
.bidx__hero--pic h1 { font-size: clamp(36px, 4.4vw, 58px); max-width: 15ch; }
.post h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; max-width: 22ch; }
.prose h2 { font-size: clamp(25px, 2.6vw, 32px); line-height: 1.22; }
.prose h3 { font-weight: 600; }
.pc__t { font-size: 21px; line-height: 1.3; }
@media (min-width: 1100px) { .pc--big .pc__t { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; } }
.topic h3 { font-size: 22px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; }
.more h2 { font-size: clamp(24px, 3vw, 32px); }
.pull p { font-weight: 500; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.4; }
@media (max-width: 600px) { .post h1 { font-size: 30px; } .bidx__hero h1, .bidx__hero--pic h1 { font-size: 36px; } }
.blog .prose, .blog .post__dek, .blog .bidx__lead, .blog .pc__d, .blog .topic > p:not(.topic__k), .blog .cta > p:not(.eyebrow) { font-weight: 400; color: #2E332F; }
.blog .prose li, .blog .prose p { color: #2E332F; }
