/* Minimal Bauhaus: primary colours, flat blocks, thick rules, geometric marks, one sans-serif family. */
:root {
  --paper: #f4f1e8;
  --white: #fff;
  --ink: #111;
  --red: #d8342b;
  --blue: #1d4e9e;
  --yellow: #f7b500;
  --muted: #4f4f4f;
  --sans: "Futura", "Century Gothic", "Avenir Next", "Helvetica Neue", Arial,
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 8px 16px;
  z-index: 5;
}
.skip-link:focus {
  top: 10px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout and header */
.site-shell {
  width: min(1240px, calc(100% - 80px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 20px;
  border-bottom: 4px solid var(--ink);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.brand-mark i {
  display: block;
  width: 14px;
  height: 14px;
}
.brand-mark i:nth-child(1) {
  background: var(--red);
  border-radius: 50%;
}
.brand-mark i:nth-child(2) {
  background: var(--blue);
}
.brand-mark i:nth-child(3) {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 800;
}
nav a {
  text-decoration: none;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
}
nav a:hover {
  border-bottom-color: var(--red);
}

/* Story labels, used by the reader's feed */
.topic-label {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.source-label {
  font-size: 12px;
  color: var(--muted);
}

/* Forms */
.subscribe-section {
  border-top: 4px solid var(--ink);
  padding: 52px 0 40px;
}
.subscribe-section h2,
.section-heading h2 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.section-description {
  color: var(--muted);
  margin-bottom: 28px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.email-field {
  max-width: 540px;
}
input[type="email"] {
  width: 100%;
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  padding: 10px 14px;
  color: var(--ink);
}
input[type="email"]::placeholder {
  color: #6b6b6b;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
legend {
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.preference-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  background: var(--ink);
  border: 3px solid var(--ink);
}
.preference-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 16px;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}
.preference-options label:hover {
  background: var(--yellow);
}
.preference-options label:has(input:checked) {
  background: var(--blue);
  color: var(--white);
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--white);
}
input[type="checkbox"]:checked {
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}
.preference-options label:has(input:checked) input {
  border-color: var(--white);
}
.topic-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}
.topic-tools button {
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.topic-tools button:hover {
  color: var(--red);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  margin: 18px 0;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
}
.subscribe-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.subscribe-actions .form-note {
  margin: 0;
}
.form-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 0;
}
.feedback {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin: 12px 0 0;
}
.feedback:empty {
  margin: 0;
}
.feedback.error {
  color: var(--red);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 24px;
  border: 3px solid var(--ink);
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition:
    background 0.12s,
    color 0.12s;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  width: 100%;
}
.primary:hover {
  background: var(--red);
  border-color: var(--ink);
}
.compact {
  width: auto;
  min-width: 150px;
}
.hero-action {
  background: var(--red);
  color: var(--white);
  width: auto;
}
.hero-action:hover {
  background: var(--ink);
}
.secondary {
  background: var(--white);
  color: var(--ink);
}
.secondary:hover {
  background: var(--yellow);
}
.danger {
  background: var(--white);
  color: var(--red);
  border-color: var(--red);
}
.danger:hover {
  background: var(--red);
  color: var(--white);
}

/* Plans */
.plans-section {
  border-top: 4px solid var(--ink);
  padding: 52px 0 64px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading p {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 3px solid var(--ink);
  background: var(--white);
}
.plan {
  position: relative;
  padding: 36px 24px 18px;
  border-right: 3px solid var(--ink);
}
.plan:last-child {
  border-right: 0;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background: var(--red);
}
.plan:nth-child(2)::before {
  background: var(--blue);
}
.plan:nth-child(3)::before {
  background: var(--yellow);
}
.plan:nth-child(4)::before {
  background: var(--ink);
}
.plan h3 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 4px;
}
.price {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -3px;
  margin: 0 0 8px;
}
.plan > p:not(.price) {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.text-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0 0;
  background: transparent;
  border: 0;
  border-top: 3px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.text-button:hover {
  color: var(--red);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 40px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}
.site-footer span {
  font-weight: 900;
  letter-spacing: 3px;
}
.site-footer p {
  margin: 0;
}

/* Account, login and personal home */
.account-panel {
  max-width: 760px;
  margin: 56px auto 90px;
}
.account-panel h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 14px 0 20px;
}
.account-panel > p {
  max-width: 650px;
}
.account-panel > .button {
  max-width: 360px;
}
.account-panel .preference-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel-context {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.4;
  padding: 2px 10px;
  margin: 0;
}
.account-email {
  color: var(--muted);
  font-weight: 700;
}
.account-summary {
  background: var(--white);
  border: 3px solid var(--ink);
  border-left: 14px solid var(--blue);
  padding: 18px 22px;
  margin: 24px 0 36px;
  font-weight: 700;
}
.renewal-options {
  border-top: 4px solid var(--ink);
  margin-top: 36px;
  padding-top: 26px;
}
.renewal-options h2,
#payment-panel h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}
.renewal-options p {
  font-size: 14px;
}
.renewal-buttons,
.unsubscribe-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#payment-panel {
  margin-top: 32px;
  background: var(--white);
  padding: 28px;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
}
#payment-qr {
  display: block;
  max-width: 100%;
  background: var(--white);
}
.account-actions {
  font-size: 13px;
  margin-top: 40px;
  color: var(--muted);
}
.login-form {
  max-width: 460px;
  margin-top: 24px;
}
.login-form .button {
  margin-top: 16px;
}
.home-panel {
  max-width: 880px;
}
.home-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.home-head .button {
  flex-shrink: 0;
  margin-top: 8px;
  min-width: 0;
}
.feed-section {
  margin: 8px 0 44px;
}
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 4px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.feed-head h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}
.feed-tabs {
  display: flex;
  border: 3px solid var(--ink);
}
.feed-tabs button {
  min-height: 42px;
  padding: 6px 16px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.feed-tabs button + button {
  border-left: 3px solid var(--ink);
}
.feed-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.feed-note {
  background: var(--white);
  border: 3px solid var(--ink);
  border-left: 14px solid var(--red);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.feed-issue h3 {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 2px 12px;
  margin: 28px 0 12px;
}
.story {
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.story.followed {
  border-left: 14px solid var(--blue);
}
.story.followed .topic-label {
  background: var(--blue);
  color: var(--white);
}
.story h4 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
}
.story p {
  font-size: 15px;
  margin-bottom: 8px;
}
.story-why {
  color: #333;
}
.story a {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}
.home-panel #preferences-form {
  border-top: 4px solid var(--ink);
  padding-top: 8px;
}

.delete-details h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 24px 0 8px;
}
.delete-details ul {
  margin: 0;
  padding-left: 22px;
}
.delete-details li {
  margin-bottom: 6px;
}
#delete-button {
  margin-top: 16px;
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}
.policy {
  max-width: 760px;
  margin: 56px auto 90px;
}
.policy h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 14px 0 12px;
}
.policy-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.policy h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 4px solid var(--ink);
}
.policy ul {
  padding-left: 22px;
}
.policy li {
  margin-bottom: 8px;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 3px solid var(--ink);
  margin: 16px 0;
  font-size: 15px;
}
.policy-table th,
.policy-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
}
.policy-table th {
  background: var(--yellow);
  font-weight: 900;
}
.policy-table td:first-child {
  width: 46%;
  font-weight: 700;
}
@media (max-width: 720px) {
  .policy {
    margin: 40px auto 64px;
  }
  .policy h1 {
    font-size: 32px;
  }
  .policy-table th,
  .policy-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
  .policy-table td:first-child {
    width: 42%;
  }
}

@media (max-width: 1000px) {
  .site-shell {
    width: calc(100% - 48px);
  }
  .preference-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan:nth-child(2) {
    border-right: 0;
  }
  .plan:nth-child(-n + 2) {
    border-bottom: 3px solid var(--ink);
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 8px;
  }
  .site-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 36px);
  }
  .site-header {
    padding: 18px 0 14px;
    gap: 10px;
  }
  .wordmark {
    font-size: 15px;
    letter-spacing: 1.5px;
    gap: 8px;
  }
  .brand-mark i {
    width: 10px;
    height: 10px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  nav a {
    white-space: nowrap;
  }
  .subscribe-section,
  .plans-section {
    padding-top: 32px;
  }
  .subscribe-section h2,
  .section-heading h2 {
    font-size: clamp(26px, 8.5vw, 32px);
  }
  .section-description {
    font-size: 14px;
  }
  .preference-options,
  .account-panel .preference-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preference-options label {
    padding: 12px;
    min-height: 54px;
  }
  .preference-options label:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .subscribe-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plan,
  .plan:nth-child(2),
  .plan:nth-child(-n + 2) {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    padding: 30px 20px 16px;
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
  .plan:last-child {
    border-bottom: 0;
  }
  .plan h3 {
    font-size: 20px;
    align-self: end;
  }
  .price {
    font-size: 46px;
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
  .plan > p:not(.price) {
    grid-column: 1;
    margin: 4px 0 10px;
  }
  .text-button {
    grid-column: 1 / -1;
  }
  .site-footer {
    display: block;
    padding: 20px;
  }
  .site-footer p {
    margin-top: 6px;
  }
  .account-panel {
    margin: 40px auto 64px;
  }
  .account-panel h1 {
    font-size: 32px;
  }
  .home-head {
    flex-direction: column;
    gap: 0;
  }
  .home-head .button {
    margin: 0 0 8px;
  }
  .feed-head {
    flex-wrap: wrap;
  }
  .feed-head h2 {
    font-size: 24px;
  }
  .story {
    padding: 16px;
  }
  .renewal-buttons .button {
    flex: 1;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .unsubscribe-actions {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  nav a[href="/#preview"] {
    display: none;
  }
}
@media (max-width: 360px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  nav {
    align-self: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
