/* Layout idea: a newspaper front page. Masthead with double rules, content set on a
   12-column sheet, hairline column rules instead of cards. One visual world: light newsprint. */
:root {
  color-scheme: light;
  --paper: #f7f8fb;
  --sheet: #ffffff;
  --ink: #141b3c;
  --ink-soft: #4a5273;
  --press: #2a47a8;
  --press-deep: #1b2f78;
  --wash: #e4eaf8;
  --rule: #c5cce0;
  --flag: #8a5a00;
  --flag-wash: #fff4d6;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--press); }
a:hover { color: var(--press-deep); }
:focus-visible { outline: 3px solid var(--press); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Preview banner */
.preview {
  background: var(--flag-wash);
  color: var(--flag);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #ecd9a0;
}
.preview strong { font-weight: 700; }
.tbc {
  background: var(--flag-wash);
  color: var(--flag);
  border-bottom: 1px dashed var(--flag);
  padding: 0 3px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.92em;
}

/* Masthead */
.masthead { background: var(--sheet); }
.dateline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px;
  font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.dateline a { color: var(--ink-soft); text-decoration: none; }
.dateline a:hover { color: var(--press); }
.nameplate {
  display: block; text-align: center; text-decoration: none; color: var(--press-deep);
  padding: 22px 0 16px;
}
.nameplate .motto { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); }
.nameplate .name {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 88px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 6px 0 8px;
}
.nameplate .name span { font-size: 1.22em; }
.nameplate .sub {
  font-size: 13px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: var(--press);
}
.nav {
  border-top: 3px double var(--press-deep);
  border-bottom: 1px solid var(--press-deep);
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px;
}
.nav a {
  display: block; padding: 12px 14px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--press); }
.nav a[aria-current="page"] { color: var(--press-deep); border-bottom-color: var(--press); }

/* Views */
main { background: var(--sheet); }
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: 0; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--press);
  margin-bottom: 12px;
}
.lede { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(34px, 5.4vw, 56px); margin-bottom: 14px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 13px 22px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.03em;
  text-decoration: none; border: 1.5px solid var(--press-deep); border-radius: 2px; cursor: pointer;
  background: var(--press-deep); color: #fff;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--press); color: #fff; }
.btn.ghost { background: transparent; color: var(--press-deep); }
.btn.ghost:hover { background: var(--wash); color: var(--press-deep); }

/* Front page hero */
.front { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding: 52px 0 56px; align-items: start; }
.front h1 { font-size: clamp(38px, 6.2vw, 68px); margin-bottom: 20px; }
.front h1 em { font-family: var(--serif); font-style: italic; color: var(--press); }
.front .lede { margin-bottom: 28px; }
.column-sample {
  border-top: 3px double var(--press-deep); border-bottom: 1px solid var(--press-deep);
  padding: 16px 0 6px;
}
.column-sample h2 {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  text-align: center; color: var(--press-deep); padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.column-sample ol { list-style: none; margin: 0; padding: 0; }
.column-sample li { border-bottom: 1px solid var(--rule); }
.column-sample li:last-child { border-bottom: 0; }
.column-sample a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 13px 2px; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 17px;
}
.column-sample a:hover { color: var(--press); background: var(--wash); }
.column-sample a span { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--press); white-space: nowrap; }

.column-sample ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 700px) { .column-sample ol { grid-template-columns: minmax(0, 1fr); } }

/* 3D newspaper */
.stage-wrap { min-width: 0; }
.stage { position: relative; height: 470px; cursor: pointer; touch-action: pan-y; }
.stage::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 4px; height: 26px; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(20, 27, 60, 0.22), rgba(20, 27, 60, 0) 70%);
}
.stage canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.stage.is-flat { display: flex; align-items: center; justify-content: center; perspective: 1100px; cursor: default; }
.stage.is-flat canvas {
  width: auto; height: 88%;
  transform: rotateY(-16deg) rotateX(5deg);
  box-shadow: 14px 18px 34px rgba(20, 27, 60, 0.22);
}
.stage-hint { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.stage-hint button {
  font: inherit; font-weight: 600; color: var(--press); background: none; border: 0; padding: 4px 2px;
  text-decoration: underline; cursor: pointer;
}
.stage-hint button:hover { color: var(--press-deep); }
.stage.is-flat + .stage-hint { display: none; }
@media (max-width: 860px) { .stage { height: 400px; } }

/* Columns with rules */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.cols > * { padding: 4px 28px 28px; border-left: 1px solid var(--rule); }
.cols > *:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.cols h3 { font-size: 25px; margin-bottom: 10px; }
.cols p { color: var(--ink-soft); font-size: 16px; }
.section > .wrap > h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 32px; max-width: 22ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--sheet); border: 1px solid var(--rule); border-top: 3px double var(--press-deep); padding: 18px 18px 22px; transform-style: preserve-3d; transition: transform 0.25s ease-out, box-shadow 0.25s; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-size: 46px; line-height: 1; color: var(--press); margin-bottom: 10px;
  transform: translateZ(36px);
}
.steps h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; transform: translateZ(18px); }
[data-tilt].is-tilting { box-shadow: 0 18px 30px rgba(20, 27, 60, 0.15); transition: transform 0.06s linear, box-shadow 0.2s; }
.steps p { font-size: 16px; color: var(--ink-soft); }

/* Services page */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.service:last-of-type { border-bottom: 0; }
.service h2 { font-size: 30px; }
.service p { max-width: 62ch; color: var(--ink-soft); }
.service p + p { margin-top: 10px; }
.note {
  background: var(--wash); border-left: 3px solid var(--press);
  padding: 16px 20px; font-size: 15px; color: var(--ink); max-width: 70ch; margin-top: 28px;
}

/* Notices */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--ink); cursor: pointer;
}
.filters button:hover { border-color: var(--press); color: var(--press); }
.filters button[aria-pressed="true"] { background: var(--press-deep); border-color: var(--press-deep); color: #fff; }
.notice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.notice { background: #fcfcf9; border: 1px solid var(--rule); padding: 18px 20px 20px; cursor: pointer; transform-style: preserve-3d; transition: transform 0.25s ease-out, box-shadow 0.25s; }
.notice:hover { border-color: var(--press); }
.notice h3 { transform: translateZ(16px); }
.notice[hidden] { display: none; }
.notice .type, .clip-body .type { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--press); }
.notice h3, .clip-body h3 { font-family: var(--serif); font-weight: 700; font-size: 16px; text-transform: uppercase; text-align: center; letter-spacing: 0.04em; margin: 10px 0; line-height: 1.35; }
.notice p, .clip-body p { font-family: var(--serif); font-size: 15px; line-height: 1.55; text-align: justify; hyphens: auto; }
.notice .run, .clip-body .run { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin-top: 10px; text-align: left; }
.empty { color: var(--ink-soft); padding: 12px 0; }
.notice-hint { font-size: 14px; color: var(--ink-soft); margin: -12px 0 20px; }
.clip-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(20, 27, 60, 0.58); display: flex; align-items: center; justify-content: center; padding: 20px; perspective: 1200px; }
.clip-overlay[hidden] { display: none; }
.clip-card { position: relative; background: #fcfcf9; width: 100%; max-width: 560px; max-height: 90%; overflow: auto; padding: 40px 38px 34px; border-top: 3px double var(--press-deep); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); animation: clip-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes clip-in { from { transform: rotateX(42deg) rotateZ(-5deg) translateY(70px) scale(0.65); opacity: 0; } to { transform: none; opacity: 1; } }
.clip-body h3 { font-size: 21px; margin: 14px 0; }
.clip-body p { font-size: 18px; }
.clip-body .run { font-size: 14px; margin-top: 16px; }
.clip-close { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--press-deep); background: none; border: 0; padding: 8px 10px; cursor: pointer; text-decoration: underline; }

/* About + contact */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.prose p:first-child::first-letter {
  font-family: var(--display); font-size: 3.6em; line-height: 0.82; float: left; padding: 6px 10px 0 0; color: var(--press-deep);
}
.factbox { border-top: 3px double var(--press-deep); border-bottom: 1px solid var(--press-deep); padding: 18px 0; }
.factbox dl { margin: 0; display: grid; gap: 14px; }
.factbox dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--press); }
.factbox dd { margin: 2px 0 0; font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; }
.factbox dd a { color: var(--ink); text-decoration-color: var(--rule); }
.factbox dd a:hover { color: var(--press); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--sheet); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--press); }
textarea { min-height: 120px; resize: vertical; }
.form-msg { background: var(--wash); border-left: 3px solid var(--press); padding: 14px 18px; font-size: 15px; }
.form-msg[hidden] { display: none; }

/* Call strip + footer */
.callstrip { background: var(--press-deep); color: #fff; padding: 40px 0; }
.callstrip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.callstrip h2 { font-size: clamp(26px, 3.6vw, 36px); color: #fff; }
.callstrip p { color: #cfd8f3; margin-top: 6px; font-variant-numeric: tabular-nums; }
.callstrip .btn { background: #fff; color: var(--press-deep); border-color: #fff; }
.callstrip .btn:hover { background: var(--wash); }
footer { background: var(--paper); padding: 32px 0 44px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
footer strong { color: var(--ink); font-family: var(--serif); font-size: 16px; }

@media (max-width: 860px) {
  .front, .two, .service { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service { gap: 10px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > * { padding: 22px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cols > *:first-child { border-top: 0; padding-top: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 44px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .notice-grid { grid-template-columns: minmax(0, 1fr); }
  .nav a { padding: 10px 9px; font-size: 13px; letter-spacing: 0.05em; }
  .dateline { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .steps li, .notice { transition: none; }
  .clip-card { animation: none; }
}
