/* September Worldwide. A printed page: headings in the margin, one reading column,
   drawings and notes to the right. Mobile first. */
:root {
  --bg: #f6f3ee;
  --bg-2: #efebe3;
  --ink: #161513;
  --ink-2: #5d5a54;
  --soft: #d8d2c7;
  --accent: #b4532a;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: 20px;
  --mc: 200px;   /* margin column */
  --cg: 56px;    /* column gap */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-x: hidden; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(22, 21, 19, .4); }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; letter-spacing: -.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 8.4vw, 4.8rem); line-height: 1.04; max-width: 19ch; }
h2 { font-size: 1.75rem; line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }
em { font-style: italic; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.ic { flex: none; }
.small { font-size: .95rem; color: var(--ink-2); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--soft); }
.top-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 1.2rem/1 var(--serif); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.mark { width: 26px; height: 26px; color: var(--ink); }
.nav { display: none; }
.menu-btn { margin-left: auto; height: 38px; padding: 0 14px; border: 1px solid var(--ink); background: none; color: var(--ink); font: 500 .92rem var(--sans); cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); }

.sheet { position: fixed; inset: 60px 0 0; z-index: 55; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 22px 0 48px; }
.sheet[hidden] { display: none; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet-main a { display: block; font: 400 2rem/1.25 var(--serif); padding: 4px 0; text-decoration: none; }
.sheet-main a[aria-current] { color: var(--accent); }
.sheet-mail { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--soft); color: var(--ink-2); }
body.locked { overflow: hidden; }

/* ---------- buttons (form only) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }

/* ---------- drawings ---------- */
.plate { margin: 0; }
.plate-in { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.plate.r45 .plate-in { aspect-ratio: 4 / 5; }
.plate-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate figcaption { margin-top: 10px; font: italic 400 1rem/1.45 var(--serif); color: var(--ink-2); }
.big-plate { margin: 4px auto 0; }

/* ---------- page openings ---------- */
.intro { padding: 44px 0 34px; }
.intro h1 { font-size: clamp(2.4rem, 9vw, 5.6rem); max-width: 17ch; margin-bottom: .6em; }
.intro-sub { max-width: 640px; }
.intro-sub p { font-size: 1.15rem; line-height: 1.6; }
.intro-sub .intro-note { color: var(--ink-2); font-size: 1rem; }
.ph { padding: 26px 0 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-2); margin-bottom: 30px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs a + a::before, .crumbs a + span::before { content: '/'; margin-right: 6px; color: var(--soft); }
.ph-sub { max-width: 640px; }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); margin-bottom: .6em; }
.ph-meta { font-size: .92rem; color: var(--ink-2); margin: 0; }
.ph.article h1 { font-size: clamp(2.1rem, 7vw, 4rem); max-width: 22ch; }
.ph.legal h1 { font-size: clamp(2.2rem, 8vw, 4rem); }

/* ---------- rows: margin heading + reading column + aside ---------- */
.row { padding: 30px 0; }
.row-in { display: grid; border-top: 1px solid var(--soft); padding-top: 22px; }
.row.last { padding-bottom: 80px; }
.mh { font-size: 1.7rem; margin: 0 0 14px; }
.col { min-width: 0; max-width: 640px; }
.col > :last-child { margin-bottom: 0; }
.col ul, .col ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.col li { margin-bottom: .45em; }
.col li::marker { color: var(--accent); }
.col h3 { margin-top: 1.4em; }
.col h3:first-child { margin-top: 0; }
.aside { min-width: 0; margin-top: 30px; max-width: 420px; }
.first > p:first-child { font: 400 1.35rem/1.5 var(--serif); }
.g-text { font: 400 1.25rem/1.45 var(--serif); }

.note { font-size: .98rem; border-top: 1px solid var(--ink); padding-top: 12px; }
.note + .note { margin-top: 30px; }
.note h3 { font: 600 .92rem/1.4 var(--sans); letter-spacing: 0; margin: 0 0 8px; }
.note p { margin-bottom: .8em; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li { padding: 7px 0; margin: 0; border-bottom: 1px solid var(--soft); }
ul.plain li:first-child { padding-top: 0; }

/* service index on the home page */
.index { display: grid; gap: 26px; margin-top: 30px; }
.ix h3 { font: 600 .95rem/1.4 var(--sans); letter-spacing: 0; margin: 0 0 6px; }
.ix h3 a { text-decoration: none; }
.ix ul { list-style: none; padding: 0; margin: 0; }
.ix li { margin: 0; padding: 3px 0; }
.ix li a { text-decoration: none; border-bottom: 1px solid var(--soft); }
.ix li a:hover { border-color: currentColor; }

/* services list */
.col .svc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--soft); }
.svc li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--soft); }
.svc a { font: 400 1.35rem/1.25 var(--serif); text-decoration: none; }
.svc a:hover { text-decoration: underline; }
.svc span { display: block; color: var(--ink-2); font-size: .98rem; margin-top: 2px; }

/* journal list */
.col .jlist { list-style: none; padding: 0; margin: 0 0 1.4em; border-top: 1px solid var(--soft); }
.jlist li { margin: 0; border-bottom: 1px solid var(--soft); }
.jlist a { display: grid; gap: 2px; padding: 16px 0; text-decoration: none; }
.jlist time { font-size: .85rem; color: var(--ink-2); }
.jlist b { font: 400 1.3rem/1.25 var(--serif); }
.jlist span { color: var(--ink-2); font-size: .98rem; }
.jlist a:hover b { color: var(--accent); }

/* definition lists */
.gets { margin: 0 0 1.2em; border-top: 1px solid var(--soft); }
.gets dt { font: 400 1.2rem/1.3 var(--serif); padding-top: 14px; }
.gets dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--soft); color: var(--ink-2); }

.col ol.stages { padding-left: 1.6em; }
ol.stages li { margin-bottom: 20px; }
ol.stages li::marker { font: italic 400 1.3rem var(--serif); }
ol.stages h3 { margin: 0 0 4px; font-size: 1.4rem; }
ol.stages p { margin: 0; }

.col ul.cols { list-style: none; padding: 0; }
ul.cols li { padding: 4px 0; margin: 0; }

.mail-big { font: italic 400 clamp(1.45rem, 5.4vw, 2.4rem)/1.25 var(--serif); overflow-wrap: anywhere; margin-bottom: .5em; }
.mail-big a { text-decoration-color: var(--accent); }
.aside .mail-big { font-size: 1.4rem; }
.write { font-size: 1.08rem; }

.pager { display: grid; gap: 14px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--soft); }
.pager a { text-decoration: none; font: 400 1.2rem/1.3 var(--serif); }
.pager span { display: block; font: 500 .82rem var(--sans); color: var(--ink-2); }

.clock { display: flex; gap: 10px; align-items: baseline; margin: 0 0 1em; font-size: .97rem; }
.clock .dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); transform: translateY(-1px); }
.clock .dot.on { background: #3f8a4f; box-shadow: 0 0 0 3px rgba(63, 138, 79, .18); }

/* ---------- articles ---------- */
.article-body > p:first-child { font: 400 1.35rem/1.5 var(--serif); }
.article-body h2 { font-size: 1.65rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.25rem; }

/* ---------- tables (stack on phones) ---------- */
.tbl { margin-bottom: 1.2em; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl thead { display: none; }
.tbl tr { display: block; border-top: 1px solid var(--soft); padding: 14px 0; }
.tbl tr:last-child { border-bottom: 1px solid var(--soft); }
.tbl td { display: block; padding: 3px 0; font-size: 1rem; }
.tbl td[data-l]::before { content: attr(data-l); display: block; font-size: .8rem; color: var(--ink-2); margin-top: 6px; }
.tbl td:first-child { font-weight: 500; }
.tbl td b { font: 400 1.3rem/1.2 var(--serif); }

/* ---------- questions ---------- */
.faq { border-top: 1px solid var(--soft); }
.faq details { border-bottom: 1px solid var(--soft); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; font: 400 1.2rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-top: 4px; transition: transform .2s; color: var(--accent); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p { margin: 0; }

/* ---------- contact form ---------- */
.form { display: grid; gap: 20px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 5px; font-weight: 500; font-size: .95rem; }
.form label > input, .form label > select, .form label > textarea { flex: 1 0 100%; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #bdb6aa; border-radius: 0; padding: 14px; min-height: 52px; -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form textarea { resize: vertical; min-height: 170px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.form .btn { justify-self: start; }
.row2 { display: grid; gap: 20px; }
.form-note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.form-err { margin: 0; padding: 12px 14px; border-left: 3px solid #b3261e; background: #fbeae7; color: #8a1d16; }
.form-ok { padding: 16px 18px; border-left: 3px solid var(--accent); background: #fff; }
.form-ok p { margin: 0; }

/* ---------- legal ---------- */
.toc { margin-bottom: 30px; font-size: .92rem; }
.toc p { font-weight: 600; margin: 0 0 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { padding: 3px 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.legal-body h2 { font-size: 1.6rem; margin-top: 1.8em; scroll-margin-top: 80px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.25rem; margin-top: 1.4em; scroll-margin-top: 80px; }
.idlist { margin: 0 0 1.4em; border-top: 1px solid var(--soft); }
.idlist dt { font-size: .85rem; color: var(--ink-2); padding-top: 10px; }
.idlist dd { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--soft); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: 44px 0 26px; }
.foot-in { display: grid; gap: 30px; }
.foot-who p { color: var(--ink-2); margin: 12px 0 0; }
.foot-who p a { color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { border-top: 1px solid var(--soft); padding-top: 18px; display: grid; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.foot-base p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-legal a { color: var(--ink); }

/* ================= wider screens ================= */
@media (min-width: 600px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .plate.wide .plate-in { aspect-ratio: 16 / 10; }
  .index { grid-template-columns: 1fr 1fr; }
  .gets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: 28px; }
  .gets dt { padding: 14px 0; border-bottom: 1px solid var(--soft); }
  .gets dd { margin: 0; padding: 16px 0 14px; }
  .idlist { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
  .idlist dt { padding: 10px 0; border-bottom: 1px solid var(--soft); }
  .idlist dd { padding: 10px 0; }
  ul.cols { columns: 2; column-gap: 32px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a:last-child { text-align: right; }
  .foot-links { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 34px; }
  .foot-base { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 720px) {
  .top { position: static; }
  html { scroll-padding-top: 24px; }
  .legal-body h2, .legal-body h3 { scroll-margin-top: 24px; }
  .top-in { height: 76px; }
  .nav { display: flex; gap: 26px; margin-left: auto; }
  .nav a { text-decoration: none; font-size: .98rem; }
  .nav a:hover { text-decoration: underline; }
  .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
  .menu-btn, .sheet { display: none !important; }
}
@media (min-width: 900px) {
  :root { --gut: 40px; }
  .intro { padding: 76px 0 50px; }
  .intro-sub, .ph-sub { margin-left: calc(var(--mc) + var(--cg)); }
  .intro-sub p { font-size: 1.25rem; }
  .ph { padding: 34px 0 44px; }
  .ph .lead { font-size: 1.28rem; }
  .plate.wide .plate-in { aspect-ratio: 2 / 1; }
  .big-plate { margin-bottom: 20px; }
  .row { padding: 40px 0; }
  .row-in { grid-template-columns: var(--mc) minmax(0, 1fr); column-gap: var(--cg); padding-top: 26px; }
  .mh, .toc { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: 24px; }
  .mh { font-size: 1.55rem; }
  .toc { max-height: calc(100vh - 48px); overflow-y: auto; margin: 0; }
  .col, .aside { grid-column: 2; }
  .jlist a { grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; }
  .jlist time { grid-row: 1 / span 2; padding-top: 5px; }
  .jlist b, .jlist span { grid-column: 2; }
  .tbl thead { display: table-header-group; }
  .tbl tr { display: table-row; border: 0; padding: 0; }
  .tbl th { text-align: left; font: 500 .85rem var(--sans); color: var(--ink-2); padding: 0 22px 10px 0; border-bottom: 1px solid var(--ink); }
  .tbl td { display: table-cell; padding: 16px 22px 16px 0; border-bottom: 1px solid var(--soft); vertical-align: top; }
  .tbl td[data-l]::before { display: none; }
  .tbl td:first-child { width: 26%; }
  .foot-in { grid-template-columns: calc(var(--mc) + var(--cg)) minmax(0, 1fr); row-gap: 34px; }
  .foot-links { align-self: start; padding-top: 4px; }
  .foot-base { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
  .row-in { grid-template-columns: var(--mc) minmax(0, 620px) minmax(0, 1fr); }
  .aside { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; justify-self: end; width: 100%; max-width: 320px; }
  .row.wide .col { grid-column: 2 / 4; max-width: none; }
  .row.wide .col > p { max-width: 620px; }
  .index { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print { .top, .sheet, .foot { display: none; } }
