@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/static/vendor/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/static/vendor/newsreader-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/vendor/dm-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #1d1a17;
  --muted: #5f574d;
  --accent: #b3311e;
  --rule: #c9bea9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}
a:hover {
  color: var(--muted);
}
p,
h1,
h2,
h3 {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1;
  padding: 12px 16px;
  background: var(--paper);
  transform: translateY(-200%);
}

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

.edition {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.mono,
.eyebrow {
  font-family: "DM Mono", ui-monospace, Menlo, monospace;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
}

.topline a {
  text-underline-offset: 3px;
}

.masthead {
  padding: 28px 0 22px;
  text-align: center;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}

.edition-details {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 19px 0 12px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
}

.edition-details::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 100%;
  border-top: 1px solid var(--ink);
}

.hero,
.pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero {
  padding: clamp(56px, 8vw, 104px) 0;
}

.hero-copy,
.pricing-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  font-size: 13px;
  color: var(--accent);
}

h1 {
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.intro {
  max-width: 34rem;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.button:hover {
  background: var(--muted);
  color: var(--paper);
}
.text-link {
  font-size: 18px;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.illustration {
  flex: 1 1 420px;
  min-width: 0;
  position: relative;
  height: 540px;
}

.paper-back {
  position: absolute;
  top: 36px;
  right: 0;
  width: 74%;
  height: 84%;
  background: #fbf9f3;
  border: 1px solid #ddd4c3;
  transform: rotate(5deg);
  box-shadow: 0 24px 48px rgb(52 38 18 / 10%);
}

.paper-front {
  position: absolute;
  top: 8px;
  left: 4%;
  width: 76%;
  height: 88%;
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fdfbf7;
  border: 1px solid #ddd4c3;
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 60px rgb(52 38 18 / 16%);
  overflow: hidden;
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}

.paper-title {
  padding: 4px 0 8px;
  border-bottom: 2px solid var(--ink);
  text-align: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.headline-line {
  flex-shrink: 0;
  height: 14px;
  width: 78%;
  background: #2b2723;
  margin-top: 4px;
}
.headline-line--short {
  width: 54%;
  margin-top: 0;
}
.paper-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 6px;
}
.paper-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.paper-image {
  height: 96px;
  background: #e7dfd0;
}
.line {
  height: 6px;
  background: #d6ccba;
}
.line--86 {
  width: 86%;
}
.line--64 {
  width: 64%;
}
.line--92 {
  width: 92%;
}
.line--78 {
  width: 78%;
}
.line--58 {
  width: 58%;
}
.line--84 {
  width: 84%;
}
.column-heading {
  height: 10px;
  width: 70%;
  background: #2b2723;
  margin-top: 8px;
}

.mail-label {
  position: absolute;
  right: 2%;
  bottom: 34px;
  width: 268px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #cdbfa6;
  transform: rotate(-4deg);
  box-shadow: 0 14px 30px rgb(52 38 18 / 14%);
  letter-spacing: normal;
  text-transform: none;
}

.mail-label-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mail-brand {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 54px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.3;
}

.mail-recipient {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.address-line {
  height: 1px;
  background: #d6ccba;
}
.address-line--short {
  width: 70%;
}

.workflow {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 72px 0 96px;
  border-top: 1px solid var(--ink);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 40rem;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 8px;
  border-right: 1px solid var(--rule);
}
.steps li:first-child {
  padding-left: 0;
}
.steps li:last-child {
  padding-right: 0;
  border-right: 0;
}
.step-number {
  font-size: 44px;
  line-height: 1;
  font-style: italic;
  color: var(--accent);
}
h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}
.steps p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.pricing {
  padding: 80px 0 104px;
  border-top: 1px solid var(--ink);
}
.pricing-copy {
  flex-basis: 420px;
  gap: 22px;
}
.pricing-copy > p:last-child {
  max-width: 32rem;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.calculator {
  flex: 1 1 400px;
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fbf9f3;
  border: 1px solid var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

.price-control {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calculator .mono {
  color: var(--muted);
}
.price-value {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
}
input[type="range"] {
  width: 100%;
  min-height: 44px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type="range"]:disabled {
  cursor: default;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  letter-spacing: normal;
}
.price-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.price-breakdown > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-value,
.above-value {
  font-size: 40px;
  line-height: 1;
}
.share-value {
  color: var(--accent);
}
.per-copy {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}
#calculator-status,
.calculator-note {
  font-size: 17px;
  line-height: 1.5;
}
.calculator-note {
  color: var(--muted);
}

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  margin-bottom: 72px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}

.start .eyebrow,
.start-note {
  color: #d9cfbd;
}
.start h2 {
  max-width: 44rem;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
}
.start-note {
  font-size: 17px;
  line-height: 1.5;
}
.button--light {
  background: var(--paper);
  color: var(--ink);
}
.button--light:hover {
  background: #d9cfbd;
  color: var(--ink);
}
.start :focus-visible {
  outline-color: var(--paper);
}

.signin-form {
  width: 100%;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.signin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signin-controls input {
  flex: 1 1 220px;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d9cfbd;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  line-height: 1.4;
}

.signin-controls .button {
  flex: 1 1 auto;
}
.signin-controls input[aria-invalid="true"] {
  border: 2px solid #e8b4a8;
}

.signin-error {
  padding: 12px 16px;
  border: 1px solid #e8b4a8;
  color: #f8d4cb;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
}

@media (max-width: 64rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps li {
    padding-bottom: 28px;
  }
  .steps li:nth-child(2n) {
    padding-right: 0;
    border-right: 0;
  }
  .steps li:nth-child(2n + 1) {
    padding-left: 0;
  }
  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .illustration {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 36rem) {
  .hero-copy,
  .pricing-copy,
  .calculator {
    flex-basis: 100%;
  }
  .illustration {
    flex-basis: 100%;
    height: 430px;
  }
  .paper-front {
    padding: 20px 18px 0;
  }
  .paper-title {
    font-size: clamp(24px, 6vw, 34px);
  }
  .mail-label {
    width: 236px;
    padding: 16px;
    font-size: 11px;
  }
  .paper-meta {
    font-size: 8px;
  }
  .workflow {
    padding: 56px 0 64px;
    gap: 32px;
  }
  .pricing {
    padding: 56px 0 64px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li {
    padding: 24px 0;
    border-right: 0;
  }
  .steps li + li {
    border-top: 1px solid var(--rule);
  }
}
