/*
Theme Name: Registre Romand
Theme URI: https://investirimmobilier.ch/
Author: La rédaction Investir Immobilier Suisse
Description: Dossier éditorial suisse pour analyser rendement locatif, financement et risques immobiliers.
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: registre-romand
*/

:root {
  --paper: #f7f8f5;
  --paper-deep: #e7e6df;
  --ink: #1e272b;
  --ink-soft: #4b5659;
  --lake: #2f6f8f;
  --lake-dark: #1d5069;
  --cadastre: #c74332;
  --moss: #647258;
  --line: #c9ceca;
  --white: #ffffff;
  --warning: #8d4b23;
  --success: #365f4a;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1220px;
  --reading: 780px;
  --shadow: 0 18px 54px rgba(30, 39, 43, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--lake-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cadastre);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cadastre);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: inline-grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--cadastre);
}

.brand-mark::before {
  top: 8px;
  left: -4px;
  width: 40px;
  height: 2px;
}

.brand-mark::after {
  top: -4px;
  right: 8px;
  width: 2px;
  height: 40px;
}

.brand-copy {
  display: block;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.primary-nav {
  justify-self: end;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--cadastre);
}

.header-tool-link,
.button,
.wp-block-button__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.header-tool-link:hover,
.button:hover,
.wp-block-button__link:hover {
  color: var(--white);
  background: var(--cadastre);
  border-color: var(--cadastre);
}

.button.is-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button.is-light:hover {
  color: var(--white);
  background: var(--cadastre);
  border-color: var(--cadastre);
}

.button.is-outline {
  color: var(--ink);
  background: transparent;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.site-main {
  min-height: 58vh;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.reading-wrap {
  width: min(var(--reading), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow,
.file-number,
.source-label,
.result-label {
  color: var(--cadastre);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.atlas-hero {
  min-height: min(740px, calc(100vh - 72px));
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.atlas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 30, 34, 0.58);
}

.atlas-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  z-index: -1;
  background: var(--cadastre);
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 270px;
  gap: 72px;
  align-items: end;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--cadastre);
}

.atlas-hero h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 500;
  line-height: 0.98;
}

.atlas-hero p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-index {
  padding: 20px 0 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-index strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dossier;
}

.hero-index li {
  counter-increment: dossier;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
}

.hero-index li::before {
  content: counter(dossier, decimal-leading-zero);
  font-family: var(--mono);
  color: #ffd6d0;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section.is-white {
  background: var(--white);
}

.section.is-ink {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.section.is-lake {
  color: var(--white);
  background: var(--lake-dark);
  border-color: var(--lake-dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 56px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2,
.page-title,
.entry-title {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 500;
  line-height: 1.05;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.is-ink .section-head p,
.is-lake .section-head p,
.is-ink .eyebrow,
.is-lake .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.path-grid,
.article-grid,
.author-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.path-item,
.article-card,
.author-card,
.metric {
  min-width: 0;
  padding: 28px;
  background: var(--paper);
}

.path-item {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.path-item h3,
.article-card h2,
.article-card h3,
.author-card h3 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
}

.path-item p,
.article-card p,
.author-card p {
  color: var(--ink-soft);
}

.path-item a,
.article-card .card-link {
  margin-top: auto;
  font-weight: 700;
}

.file-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.file-strip > div {
  min-height: 150px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.file-strip > div:first-child {
  border-left: 0;
}

.file-strip strong {
  display: block;
  margin: 14px 0 5px;
  font-family: var(--serif);
  font-size: 24px;
}

.home-tool {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 430px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-tool-copy {
  padding: 48px;
}

.home-tool-copy h2 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.05;
}

.home-tool-sheet {
  position: relative;
  padding: 48px;
  color: var(--white);
  background: var(--lake-dark);
  overflow: hidden;
}

.home-tool-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 52px;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

.formula-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 17px 0 17px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
}

.formula-row span:last-child {
  font-family: var(--mono);
  font-weight: 700;
}

.page-hero,
.entry-hero {
  padding: 74px 0 52px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner,
.entry-hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 820px) 1fr;
  gap: 70px;
  align-items: end;
}

.page-deck,
.entry-deck {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 20px;
}

.page-stamp,
.entry-meta-panel {
  padding: 20px 0 8px 20px;
  border-left: 2px solid var(--cadastre);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.page-content,
.entry-content {
  padding: 62px 0 96px;
}

.page-content > *,
.entry-content > * {
  width: min(var(--reading), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.page-content > .alignwide,
.entry-content > .alignwide,
.page-content > .tool-shell,
.entry-content > .tool-shell,
.page-content > .content-band,
.entry-content > .content-band {
  width: min(var(--max), calc(100% - 40px));
}

.page-content > .alignfull,
.entry-content > .alignfull {
  width: 100%;
}

.page-content h2,
.entry-content h2 {
  margin-top: 54px;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.12;
}

.page-content h3,
.entry-content h3 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

.page-content p,
.entry-content p,
.page-content li,
.entry-content li {
  color: #344044;
}

.page-content li,
.entry-content li {
  margin-bottom: 8px;
}

.entry-featured {
  width: min(var(--max), calc(100% - 40px));
  margin: 44px auto 0;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
}

.lead {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
}

.dossier-note,
.source-box,
.risk-note,
.method-box {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 22px 24px;
  border-left: 3px solid var(--cadastre);
  background: var(--white);
}

.source-box {
  border-color: var(--lake);
  font-size: 15px;
}

.risk-note {
  border-color: var(--warning);
  background: #fff8f0;
}

.method-box {
  border-color: var(--moss);
  background: #f1f4ef;
}

.source-box strong,
.risk-note strong,
.method-box strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.table-scroll {
  width: min(var(--max), calc(100% - 40px));
  margin-top: 34px;
  margin-bottom: 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  min-width: 160px;
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 11px 0 11px 34px;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 2px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--ink-soft);
  background: var(--white);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.tool-form,
.tool-results {
  min-width: 0;
  padding: 38px;
}

.tool-results {
  color: var(--white);
  background: var(--ink);
}

.tool-form h2,
.tool-results h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.tool-form > p,
.tool-results > p {
  margin-top: 0;
  font-size: 15px;
}

.tool-results > p,
.tool-results li {
  color: rgba(255, 255, 255, 0.82);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tool-field {
  min-width: 0;
}

.tool-field.is-wide {
  grid-column: 1 / -1;
}

.tool-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.tool-field small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.tool-field input,
.tool-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #9da7a7;
  border-radius: 0;
}

.tool-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  color: var(--white);
  background: var(--cadastre);
  font-weight: 750;
  cursor: pointer;
}

.tool-submit:hover {
  background: #a43225;
}

.results-placeholder {
  min-height: 310px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.38);
}

.results-placeholder strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-cell {
  min-width: 0;
  padding: 18px;
  background: var(--ink);
}

.result-cell strong {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 25px;
  overflow-wrap: anywhere;
}

.result-label {
  color: #f4aaa1;
}

.tool-warning {
  margin: 16px 0;
  padding: 14px 16px;
  color: #fff5df;
  background: #5d3a26;
  border-left: 3px solid #f0b36d;
  font-size: 14px;
}

.result-assumptions {
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
}

.result-assumptions dt {
  color: rgba(255, 255, 255, 0.62);
}

.result-assumptions dd {
  margin: 0 0 10px;
}

.tool-next a {
  color: #c5e7f5;
}

.faq-list details {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.article-card {
  padding: 0;
  background: var(--white);
}

.article-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.article-card-copy {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.article-card h2,
.article-card h3 {
  font-size: 25px;
}

.article-card h2 a,
.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card-meta,
.entry-byline {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.archive-header {
  padding: 64px 0 40px;
}

.pagination {
  margin-top: 44px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination a,
.pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 7px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}

.pagination .current {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 650px;
  margin-top: 26px;
}

.search-form input {
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
}

.search-form button {
  min-height: 48px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.site-footer {
  color: var(--white);
  background: #151c1f;
  border-top: 8px solid var(--cadastre);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
}

.footer-brand {
  max-width: 330px;
}

.footer-brand h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}

.footer-brand p,
.footer-col a,
.footer-meta {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 8px 0;
}

.footer-col a {
  font-size: 14px;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  font-size: 11px;
}

.not-found {
  min-height: 65vh;
  display: grid;
  place-content: center;
  padding: 80px 20px;
  text-align: center;
}

.not-found strong {
  color: var(--cadastre);
  font-family: var(--mono);
  font-size: 13px;
}

.not-found h1 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 230px 1fr auto;
    gap: 16px;
  }

  .primary-nav ul {
    gap: 13px;
  }

  .primary-nav a {
    font-size: 13px;
  }

  .header-tool-link {
    display: none;
  }

  .hero-inner,
  .page-hero-inner,
  .entry-hero-inner {
    grid-template-columns: 1fr 230px;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - 72px);
    display: none;
    justify-self: stretch;
    padding: 26px 20px;
    background: var(--paper);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: block;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: 17px;
  }

  .hero-inner,
  .page-hero-inner,
  .entry-hero-inner,
  .section-head,
  .home-tool,
  .tool-shell {
    grid-template-columns: 1fr;
  }

  .hero-index,
  .page-stamp,
  .entry-meta-panel {
    max-width: 500px;
  }

  .path-grid,
  .article-grid,
  .author-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .file-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .wrap,
  .hero-inner,
  .page-hero-inner,
  .entry-hero-inner,
  .footer-inner,
  .entry-featured,
  .page-content > .alignwide,
  .entry-content > .alignwide,
  .page-content > .tool-shell,
  .entry-content > .tool-shell,
  .page-content > .content-band,
  .entry-content > .content-band,
  .table-scroll {
    width: min(100% - 28px, var(--max));
  }

  .reading-wrap,
  .page-content > *,
  .entry-content > * {
    width: min(100% - 28px, var(--reading));
  }

  .header-inner {
    min-height: 64px;
  }

  .primary-nav {
    top: 64px;
    height: calc(100dvh - 64px);
  }

  .atlas-hero {
    min-height: 670px;
  }

  .hero-inner {
    padding: 54px 0 28px;
    gap: 20px;
  }

  .atlas-hero h1 {
    margin-top: 14px;
    margin-bottom: 16px;
    font-size: 43px;
    overflow-wrap: anywhere;
  }

  .atlas-hero p {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .page-deck,
  .entry-deck {
    font-size: 18px;
  }

  .hero-index {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 28px;
  }

  .section-head h2,
  .page-title,
  .entry-title {
    font-size: 39px;
    overflow-wrap: anywhere;
  }

  .path-grid,
  .article-grid,
  .author-grid,
  .metric-grid,
  .file-strip,
  .tool-grid,
  .result-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .file-strip > div,
  .file-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .file-strip > div:first-child {
    border-top: 0;
  }

  .home-tool-copy,
  .home-tool-sheet,
  .tool-form,
  .tool-results {
    padding: 28px 20px;
  }

  .tool-field.is-wide {
    grid-column: auto;
  }

  .entry-featured {
    aspect-ratio: 4 / 3;
  }

  .entry-content h2,
  .page-content h2 {
    font-size: 31px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
