/* Hallmark · macrostructure: Long Document · genre: editorial field memo · continuous 62ch reading measure with restrained evidence tools */
:root {
  --memo-ink: #172018;
  --memo-paper: #f6f1e7;
  --memo-rule: #c9c0ae;
  --memo-green: #395841;
  --memo-rust: #a7502a;
  --memo-note: #ece3d3;
}
.memo-page {
  background: var(--memo-paper);
  color: var(--memo-ink);
}
.memo-page .breadcrumb {
  padding-block: 1.05rem;
  font:
    500 0.78rem/1.4 "IBM Plex Mono",
    monospace;
  letter-spacing: 0.02em;
}
.memo-hero {
  position: relative;
  min-height: clamp(31rem, 65vw, 47rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.memo-hero__media,
.memo-hero__shade {
  position: absolute;
  inset: 0;
}
.memo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.memo-hero__shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 17, 12, 0.88) 0%,
      rgba(10, 17, 12, 0.7) 42%,
      rgba(10, 17, 12, 0.16) 76%
    ),
    linear-gradient(0deg, rgba(8, 13, 9, 0.8), transparent 58%);
}
.memo-hero__media {
  z-index: -2;
}
.memo-hero__inner {
  max-width: 72rem;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem);
}
.memo-kicker {
  margin: 0 0 1rem;
  font:
    600 0.78rem/1.4 "IBM Plex Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e2ca91;
}
.memo-hero h1 {
  max-width: 13ch;
  margin: 0;
  font:
    650 clamp(3rem, 7.4vw, 6.6rem)/0.91 "Newsreader",
    serif;
  letter-spacing: -0.045em;
}
.memo-hero__lead {
  max-width: 55ch;
  margin: 1.4rem 0 0;
  font:
    400 clamp(1.05rem, 1.7vw, 1.35rem)/1.55 "IBM Plex Sans",
    sans-serif;
  color: #f5f2e9;
}
.memo-hero__limit {
  max-width: 62ch;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid #d49455;
  background: rgba(10, 17, 12, 0.62);
  font:
    400 0.88rem/1.55 "IBM Plex Sans",
    sans-serif;
}
.memo-article {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  font:
    400 1.04rem/1.78 "IBM Plex Sans",
    sans-serif;
}
.memo-measure {
  max-width: 62ch;
  margin-inline: auto;
}
.memo-deck {
  font:
    500 clamp(1.35rem, 2.5vw, 1.75rem)/1.52 "Newsreader",
    serif;
}
.memo-rule {
  border: 0;
  border-top: 1px solid var(--memo-rule);
  margin: 3.2rem 0;
}
.memo-section {
  margin-top: 3.2rem;
}
.memo-section h2 {
  margin: 0 0 1rem;
  font:
    650 clamp(2rem, 4vw, 3rem)/1.02 "Newsreader",
    serif;
  letter-spacing: -0.025em;
}
.memo-section h3 {
  margin: 2rem 0 0.5rem;
  font:
    700 1rem/1.4 "IBM Plex Sans",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
.memo-section p,
.memo-section ul,
.memo-section ol {
  margin: 0 0 1.15rem;
}
.memo-section li + li {
  margin-top: 0.5rem;
}
.memo-margin {
  margin: 2.2rem 0;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--memo-rust);
  background: var(--memo-note);
  font-size: 0.94rem;
}
.memo-tool {
  margin: 2.7rem calc((min(100vw - 2rem, 64rem) - min(100vw - 2rem, 62ch)) / -2);
  padding: clamp(1.2rem, 3.6vw, 2.4rem);
  background: #18251c;
  color: #f5f2e9;
  border-top: 5px solid #a96b3f;
  box-shadow: 0 1.5rem 4rem rgba(21, 31, 23, 0.12);
}
.memo-tool h2 {
  color: #fff;
}
.memo-tool p {
  color: #d8ded7;
}
.memo-tool__scroll {
  overflow-x: auto;
  margin-top: 1.25rem;
}
.memo-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.memo-table th,
.memo-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
  vertical-align: middle;
}
.memo-table th {
  font:
    600 0.69rem/1.3 "IBM Plex Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #dac18d;
}
.memo-table input,
.memo-table select {
  width: 100%;
  min-width: 5.5rem;
  padding: 0.55rem;
  border: 1px solid #66736a;
  border-radius: 0;
  background: #f8f5ec;
  color: #18251c;
  font: inherit;
}
.memo-table output {
  font-weight: 700;
  color: #f0c17a;
}
.memo-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.3rem;
  background: #546057;
  border: 1px solid #546057;
}
.memo-summary div {
  padding: 1rem;
  background: #233128;
}
.memo-summary span {
  display: block;
  font:
    500 0.68rem/1.4 "IBM Plex Mono",
    monospace;
  text-transform: uppercase;
  color: #b9c3bc;
}
.memo-summary strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.7rem;
  color: #fff;
}
.memo-tool button {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d0b276;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.memo-figure {
  margin: 3rem 0;
}
.memo-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.memo-figure figcaption {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--memo-rule);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #536056;
}
.memo-steps {
  counter-reset: memo-step;
  padding: 0;
  list-style: none;
}
.memo-steps li {
  counter-increment: memo-step;
  position: relative;
  padding-left: 3.2rem;
}
.memo-steps li::before {
  content: counter(memo-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font:
    600 0.75rem/1.5 "IBM Plex Mono",
    monospace;
  color: var(--memo-rust);
}
.memo-faq h3 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.08rem;
}
.memo-sources {
  margin-top: 2.2rem;
  border-top: 1px solid var(--memo-rule);
}
.memo-source {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--memo-rule);
  color: inherit;
  text-decoration: none;
}
.memo-source strong {
  display: block;
}
.memo-source small {
  display: block;
  margin-top: 0.25rem;
  color: #586158;
}
.memo-source:hover strong {
  text-decoration: underline;
}
.memo-next {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.5rem;
}
.memo-next a {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--memo-green);
  color: var(--memo-green);
  font-weight: 700;
  text-decoration: none;
}
.memo-next a:hover {
  background: var(--memo-green);
  color: #fff;
}
@media (max-width: 767px) {
  .memo-hero {
    min-height: 39rem;
  }
  .memo-hero__media img {
    object-position: 58% center;
  }
  .memo-hero__shade {
    background:
      linear-gradient(90deg, rgba(10, 17, 12, 0.9), rgba(10, 17, 12, 0.38)),
      linear-gradient(0deg, rgba(8, 13, 9, 0.85), transparent 62%);
  }
  .memo-tool {
    margin-inline: 0;
  }
  .memo-summary {
    grid-template-columns: 1fr;
  }
  .memo-article {
    width: min(100% - 1.3rem, 64rem);
  }
  .memo-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.6rem);
  }
}
@media print {
  .nav,
  .footer,
  .breadcrumb,
  .memo-tool button {
    display: none !important;
  }
  .memo-hero {
    min-height: 0;
    color: #111;
  }
  .memo-hero__media,
  .memo-hero__shade {
    display: none;
  }
  .memo-hero__inner {
    padding: 1rem 0;
  }
  .memo-article {
    padding: 1rem 0;
  }
  .memo-tool {
    color: #111;
    background: #fff;
    box-shadow: none;
    border: 1px solid #777;
  }
  .memo-tool h2,
  .memo-tool p,
  .memo-summary strong {
    color: #111;
  }
  .memo-summary div {
    background: #fff;
  }
  .memo-table th {
    color: #333;
  }
}
