@font-face {
  font-family: "Kaisei Decol";
  src: url("../fonts/kaisei-decol-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #100e0c;
  --rice: #e8e0d4;
  --mute: #8a8175;
  --gold: #c4a574;
  --line: #2e2a26;
  --display: "Kaisei Decol", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--rice);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

p,
ul,
ol,
dl {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

main {
  flex: 1 0 auto;
}

.mdr-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.55rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mdr-skip:focus {
  top: 1rem;
}

.mdr-wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mdr-bar {
  padding: 1.4rem 0 1.1rem;
}

.mdr-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.mdr-mark {
  display: block;
  text-decoration: none;
}

.mdr-mark img {
  width: 148px;
  height: 36px;
}

.mdr-words {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem 1.75rem;
}

.mdr-words a {
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.mdr-words a:hover,
.mdr-words a[aria-current="page"] {
  color: var(--gold);
}

.mdr-open {
  min-height: calc(100svh - 5.5rem);
  display: flex;
  align-items: center;
  padding: 3rem 0 5rem;
}

.mdr-open-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mdr-open-copy {
  max-width: 34rem;
}

.mdr-num {
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.mdr-open h1,
.mdr-inner h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.mdr-rule {
  display: block;
  width: 0;
  height: 1px;
  margin: 1.35rem 0 1.7rem;
  background: var(--gold);
}

.mdr-rule.mdr-drawn {
  width: min(11rem, 42%);
}

.mdr-js .mdr-rule {
  transition: width 0.9s ease;
}

.mdr-open-lead,
.mdr-sheet p,
.mdr-inner p {
  max-width: 40rem;
  color: var(--rice);
}

.mdr-open-lead {
  margin-bottom: 2rem;
  color: #c9c0b3;
}

.mdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 26px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.mdr-btn:hover {
  filter: brightness(1.06);
}

.mdr-sheet {
  padding: 4.2rem 0;
  border-top: 1px solid var(--line);
}

.mdr-inner {
  padding-top: 2.4rem;
}

.mdr-sheet h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.mdr-rows > li,
.mdr-office > div,
.mdr-asks > div,
.mdr-points > li,
.mdr-links > li,
.mdr-beats > li {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 0.8rem 1.6rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.mdr-rows a,
.mdr-links a,
.mdr-note-title a {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
}

.mdr-rows p,
.mdr-office dd,
.mdr-asks dd {
  color: #c9c0b3;
}

.mdr-office dt,
.mdr-asks dt,
.mdr-points li,
.mdr-beats li {
  color: var(--rice);
}

.mdr-office dt,
.mdr-asks dt {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mdr-office dd,
.mdr-end-id a,
.mdr-end-id span {
  overflow-wrap: anywhere;
}

.mdr-text {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.mdr-note-title {
  margin-bottom: 0.7rem;
}

.mdr-beats {
  counter-reset: beat;
}

.mdr-beats > li {
  grid-template-columns: 2.2rem minmax(0, 1fr);
}

.mdr-beats > li::before {
  counter-increment: beat;
  content: counter(beat);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.2rem;
}

.mdr-muted {
  margin-top: 1.1rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.mdr-action {
  margin-top: 2.2rem;
}

.mdr-write {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem;
  align-items: start;
}

.mdr-write-aside .mdr-office > div {
  grid-template-columns: 1fr;
}

.mdr-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.mdr-form label {
  margin-top: 0.7rem;
  color: var(--mute);
  font-size: 0.86rem;
}

.mdr-form input,
.mdr-form select,
.mdr-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--rice);
  font: inherit;
}

.mdr-form option {
  color: var(--ink);
}

.mdr-form .mdr-btn {
  margin-top: 1.2rem;
  justify-self: start;
}

.mdr-form-error {
  color: #d7b08a;
}

.mdr-end {
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--gold);
}

.mdr-end-legal {
  font-family: var(--display);
  font-size: 1.15rem;
}

.mdr-end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 1rem 0 1.15rem;
}

.mdr-end-links a {
  color: var(--mute);
  text-decoration: none;
}

.mdr-end-links a:hover {
  color: var(--gold);
}

.mdr-end-id {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  color: var(--mute);
  font-size: 0.92rem;
}

.mdr-end-id a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 860px) {
  .mdr-open-row,
  .mdr-write {
    grid-template-columns: 1fr;
  }

  .mdr-open {
    min-height: 0;
    padding: 2rem 0 3.2rem;
  }

  .mdr-rows > li,
  .mdr-office > div,
  .mdr-asks > div,
  .mdr-points > li,
  .mdr-links > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 640px) {
  .mdr-bar-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdr-js .mdr-rule {
    transition: none;
    width: min(11rem, 42%);
  }
}
