/* PDF Retag: an open records shelf. Manila folders, end-tab labels, an OUT guide. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #f4f5f2;      /* label stock */
  --ink: #1c1e22;         /* carbon ink */
  --teal: #00616b;        /* end-tab teal */
  --manila: #e2bd63;      /* folder stock */
  --manila-edge: #c9a24a; /* folder fold line, neutral of manila */
  --ink-soft: #3d4047;
  --rule: #c9ccc4;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --r: 10px;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
}
::selection { background: var(--teal); color: var(--ground); }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--teal) var(--ground); }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--teal); color: var(--ground); padding: .5rem 1rem; z-index: 9; border-radius: 0 0 6px 6px; font-weight: 700; }
.skip:focus { top: 0; }

/* ---------- masthead: wordmark on label stock, nav as file tabs ---------- */
.mast { border-bottom: 1px solid var(--rule); }
.mast-in { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1rem; flex-wrap: wrap; }
.mark { display: block; padding-bottom: .75rem; }
.mark img { display: block; width: clamp(150px, 22vw, 220px); height: auto; }
.nav { display: flex; gap: .25rem; align-items: flex-end; flex-wrap: wrap; }
.tab {
  display: inline-block; padding: .45rem 1rem .5rem; border-radius: 8px 8px 0 0;
  background: var(--manila); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(2px); transition: transform .35s var(--ease), background-color .2s;
}
.tab:hover, .tab:focus-visible { transform: translateY(-3px); }
.tab[aria-current="page"] { background: var(--ink); color: var(--ground); }
.tab-act { background: var(--teal); color: var(--ground); }

/* ---------- the shelf: folder edges seen end-on ---------- */
.hero-wrap { width: min(var(--wrap), 100% - 2rem); margin: 1.5rem auto 0; }
.shelf { display: block; width: 100%; height: auto; }
.shelf-narrow { display: none; }
.fig { font-family: var(--mono); font-weight: 500; font-size: 1.45em; white-space: nowrap; letter-spacing: -.01em; }
.price-add .fig { font-size: 1.1em; line-height: 1; }
.sf-edge { fill: var(--manila); stroke: var(--manila-edge); stroke-width: 1; }
.sf-tag { fill: var(--teal); }
.sf-notch { fill: none; stroke: var(--ground); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf-flag { fill: var(--ink); }
.sf-rail { fill: var(--ink-soft); }

/* ---------- a manila folder: third-cut tab over the body ---------- */
.folder { position: relative; }
.folder-tab {
  width: calc(33.333% - .5rem); min-width: 7rem; height: 1.6rem;
  background: var(--manila); border-radius: var(--r) var(--r) 0 0;
  position: relative; z-index: 1;
}
.cut-mid .folder-tab { margin-left: 33.333%; }
.cut-right .folder-tab { margin-left: auto; }
.folder-tab:has(.tab-h) { width: fit-content; max-width: 100%; height: auto; padding: 1rem 1.5rem .35rem; }
.cut-mid .folder-tab:has(.tab-h) { margin-left: 16%; }
.tab-h { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); }
.folder-body {
  background: var(--manila); border-radius: 0 var(--r) var(--r) var(--r);
  padding: 2.75rem;
  box-shadow: 0 1px 0 var(--manila-edge), 0 14px 28px -18px rgba(28, 30, 34, .45);
  position: relative;
}
.cut-mid .folder-body, .cut-right .folder-body { border-radius: var(--r); }
.cut-right .folder-body { border-top-right-radius: 0; }
/* the fold line printed across every folder */
.folder-body::before { content: ""; position: absolute; left: 0; right: 0; top: .6rem; border-top: 1px solid var(--manila-edge); opacity: .7; }

/* hero folder */
.hero .folder-body { padding-top: 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.hero-h { font-size: clamp(2.1rem, 5.2vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin-bottom: .6em; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; color: var(--ink); }

/* a white file label pasted on the folder */
.label {
  background: var(--ground); padding: 1.25rem 1.25rem 1rem;
  position: relative;
}
.label-h { font-weight: 800; font-size: 1.4rem; line-height: 1.3; margin-top: .25rem; color: var(--teal); }
.label-how { margin: 1rem 0 0; font-size: .97rem; }

/* the action: a teal end-tab label */
.act { margin: 1rem 0 0; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.4rem;
  background: var(--teal); color: var(--ground); font-weight: 800; font-size: inherit; text-decoration: none;
  border-radius: 4px 12px 12px 4px; box-shadow: 0 6px 14px -8px rgba(0, 97, 107, .9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(0, 97, 107, .9); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 6px -4px rgba(0, 97, 107, .9); }

/* ---------- sections ---------- */
.sec { margin-top: clamp(3rem, 7vw, 5.5rem); }
.sec-h { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: .7em; color: var(--teal); }
.folder .sec-h { color: var(--ink); }
.lead { font-size: 1.4rem; line-height: 1.5; max-width: 58ch; }
.prob { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.prob-body { font-size: 1.15rem; max-width: 62ch; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }

/* checked list: a teal notch per item (a mark, not only a hue) */
.ticks { list-style: none; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.25rem; height: 1.1rem; background: var(--teal); border-radius: 2px 6px 6px 2px; }
.ticks li::after { content: ""; position: absolute; left: .3rem; top: .5em; width: .7rem; height: .55rem; background: var(--ground); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.5l4 4l9-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M1.5 6.5l4 4l9-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticks-sm { font-size: .97rem; gap: .5rem; }

/* limits: flagged list (ink flag cut) */
.limits { list-style: none; display: grid; gap: .5rem; margin-top: .5rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.limits li { position: relative; padding-left: 1.6rem; }
.limits li::before { content: ""; position: absolute; left: 0; top: .35em; width: .9rem; height: .9rem; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }

/* how it works: one folder, a ruled sequence; each number on a teal end-tab chip */
.steps { list-style: none; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 17rem) minmax(0, 1fr); gap: .5rem 1.5rem; align-items: baseline; padding: 0 0 1.25rem; }
.steps li + li { padding-top: 1.25rem; border-top: 1px solid var(--manila-edge); }
.steps li::before { content: counter(s); background: var(--teal); color: var(--ground); font-family: var(--mono); font-weight: 500; font-size: 1.3rem; text-align: center; padding: .15rem 0; border-radius: 3px 8px 8px 3px; }
.steps h3 { font-size: 1.2rem; font-weight: 800; }
.steps p { margin: 0; }

/* price folder + OUT guide */
.price { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.price-big { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; background: var(--ground); padding: .9rem 1.1rem; border-radius: 6px; max-width: 46ch; }
.price-add { list-style: none; font-size: 1.0625rem; display: grid; gap: .5rem; margin: 1rem 0 1.5rem; }
.price-add li { border-bottom: 1px solid var(--manila-edge); padding-bottom: .5rem; }
.terms { list-style: none; display: grid; gap: .7rem; font-size: .98rem; }
.terms li { position: relative; padding-left: 1.4rem; }
.terms li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6rem; height: 2px; background: var(--ink); }
.terms a, .faq a, .label a { overflow-wrap: anywhere; }
.folder a:not(.btn) { color: var(--ink); }
.price-link { margin: 1.25rem 0 0; font-weight: 700; }
.outguide { background: var(--teal); color: var(--ground); border-radius: 0 var(--r) var(--r) var(--r); padding: 1.5rem 1.4rem; position: relative; margin-top: 2.4rem; }
.outguide::before { content: ""; position: absolute; left: 0; top: -2.4rem; width: 55%; height: 2.45rem; background: var(--teal); border-radius: var(--r) var(--r) 0 0; }
.out-h { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; position: absolute; top: -2rem; left: 1.4rem; }
.x { list-style: none; display: grid; gap: .8rem; }
.x li { position: relative; padding-left: 1.6rem; }
.x li::before, .x li::after { content: ""; position: absolute; left: .1rem; top: .75em; width: .95rem; height: 2px; background: var(--manila); transform: rotate(45deg); }
.x li::after { transform: rotate(-45deg); }

/* FAQ: folders filed edge-on, question on the tab line */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.qa { padding: 0 0 1.75rem; }
.qa h3 { font-size: 1.15rem; font-weight: 800; background: var(--manila); width: fit-content; max-width: 100%; padding: .55rem .9rem .35rem; border-radius: 8px 8px 0 0; }
.qa:nth-child(even) h3 { margin-left: auto; }
.qa p { margin: 0; padding-top: 1rem; color: var(--ink); background: linear-gradient(var(--manila), var(--manila)) top left / 100% 6px no-repeat; }

/* close: drenched teal band */
.close { background: var(--teal); color: var(--ground); margin-top: clamp(3.5rem, 8vw, 6rem); padding: 4rem 1.5rem; }
.close-h { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5em; }
.close-body { font-size: 1.2rem; max-width: 60ch; }
.close a { color: var(--ground); }
.close .btn { background: var(--manila); color: var(--ink); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.close :focus-visible { outline-color: var(--manila); }

/* ---------- subpages ---------- */
.sub { margin-top: 2.5rem; max-width: 880px; }
.sub-h { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .6em; }
.big-mail { font-family: var(--mono); font-size: clamp(1.2rem, 3.5vw, 1.9rem); margin: 1rem 0 0; overflow-wrap: anywhere; }

/* ---------- policy pages: long reading, one column, contents beside ---------- */
.doc { margin-top: 2.5rem; }
.doc-h { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; padding-bottom: 1rem; margin-bottom: 1.5rem; background: linear-gradient(var(--manila), var(--manila)) bottom left / 100% 6px no-repeat; max-width: 22ch; }
.doc-grid { display: grid; grid-template-columns: 15rem minmax(0, 70ch); gap: 3rem; align-items: start; }
.toc { position: sticky; top: 1rem; font-size: 1rem; background: var(--manila); border-radius: 0 var(--r) var(--r) var(--r); padding: 1rem 1.1rem; }
.toc-l { font-weight: 800; margin-bottom: .5rem; }
.toc ol { padding-left: 1.2rem; display: grid; gap: .3rem; }
.toc a { color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 2rem; font-weight: 800; color: var(--teal); margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.3rem; font-weight: 800; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1em; display: grid; gap: .35rem; }
.prose time { font-family: var(--mono); font-weight: 500; color: var(--teal); }
.prose > p:first-child { font-family: var(--mono); font-size: 1rem; }
.doc-grid > .prose:first-child { grid-column: 2; }
.update { padding-top: .25rem; }
.update h2 { margin-top: 1.25rem; color: var(--ink); }
.update time, .update a { color: var(--ink); }
.update + .update { margin-top: 2.5rem; background: linear-gradient(var(--manila), var(--manila)) top left / 100% 6px no-repeat; }

/* ---------- footer: the shelf's base ---------- */
.foot { background: var(--ink); color: var(--ground); margin-top: 4rem; padding: 2rem 0 2.5rem; }
.pg-home .foot { margin-top: 0; }
.foot-in { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; }
.foot p { margin: 0; }
.foot a { color: var(--ground); }
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-left: auto; }
.foot :focus-visible { outline-color: var(--manila); }

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .prob, .price, .faq, .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); }
  .steps li p { grid-column: 2; }
  .toc { position: static; }
  .doc-grid > .prose:first-child { grid-column: 1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .shelf-wide { display: none; }
  .shelf-narrow { display: block; }
  .folder-tab:has(.tab-h), .cut-mid .folder-tab:has(.tab-h) { margin-left: 0; padding: .8rem 1rem .3rem; }
  .mast-in { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav { gap: .2rem; }
  .tab { padding: .4rem .45rem .45rem; font-size: 1rem; }
  .hero-h { font-size: 2rem; }
  .hero-sub { font-size: 1.05rem; }
  .folder-tab { height: 1.1rem; }
  .folder-body { padding: 1.4rem 1.25rem; }
  .hero .folder-body { padding-top: 1.75rem; }
  .close { padding: 2.5rem 1rem; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
