:root {
  --paper: #f1e4c5;
  --paper-light: #f7edda;
  --paper-deep: #dbc69c;
  --ink: #110d0a;
  --sumi: #29231e;
  --red: #c62b2d;
  --red-dark: #8e1f24;
  --gold: #b88a43;
  --patina: #426a60;
  --smoke: #6d6357;
  --line: rgba(17, 13, 10, 0.16);
  --light-line: rgba(241, 228, 197, 0.18);
  --shadow: 0 28px 90px rgba(43, 28, 18, 0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-title: "Zen Old Mincho", Georgia, serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-label: "IBM Plex Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 76px;
}

body {
  background: linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 48%, #e7d4ad 100%);
  color: var(--ink);
  font-family: var(--font-body);
  margin: 0;
}

/* Two grain layers: fine paper fibre over a slow mottle, so the paper reads
   uneven rather than evenly speckled. */
body::before {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)' opacity='.32'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 900 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23c)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 160px 160px, 900px 900px;
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.14;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

/* width/height attributes are there to reserve layout space, so height must
   stay auto or they would fight aspect-ratio and fixed-height rules below. */
img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-header {
  background: rgba(247, 237, 218, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  min-height: 76px;
  padding: 10px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand img {
  border: 1px solid rgba(17, 13, 10, 0.22);
  border-radius: 6px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.brand small,
.eyebrow,
.hero-meta,
.hero-note span,
.seal-number,
.text-link {
  font-family: var(--font-label);
}

.brand small {
  color: var(--smoke);
  font-size: 11px;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Color-emoji only — do not inherit Fraunces / Newsreader / IBM Plex. */
.chun-tile {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", sans-serif;
  font-style: normal;
  font-variant-emoji: emoji;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.brand small .chun-tile {
  display: inline;
  font-size: 1em;
  margin-left: 0.4em;
  vertical-align: -0.12em;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 4px;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  color: var(--smoke);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 13px 10px;
}

.nav-links a:hover,
.nav-links a.is-active {
  border-bottom-color: var(--red);
  color: var(--ink);
}

.nav-cta,
.button {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper-light);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1500px;
  min-height: 720px;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-wash {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  background: linear-gradient(90deg, rgba(241, 228, 197, 0.99) 0%, rgba(241, 228, 197, 0.92) 43%, rgba(241, 228, 197, 0.16) 75%, rgba(17, 13, 10, 0.06) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
  padding: 70px 64px 90px;
  position: relative;
  width: min(720px, 62%);
  z-index: 2;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

h3 {
  font-family: var(--font-title);
  font-weight: 700;
}

h1 {
  font-size: 112px;
  line-height: 0.86;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-end {
  white-space: nowrap;
}

h1 .chun-tile {
  display: inline;
  font-size: 0.26em;
  margin-left: 0.16em;
  vertical-align: 0.12em;
}

.hero-line {
  color: var(--red-dark);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
}

.lede {
  color: #51483e;
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 620px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-primary {
  background: var(--red);
  color: #fff7e8;
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  background: rgba(247, 237, 218, 0.76);
  border: 1px solid rgba(17, 13, 10, 0.2);
}

.button-secondary:hover {
  background: var(--paper-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 0;
  margin-top: 30px;
  text-transform: uppercase;
}

.hero-meta span {
  border-left: 1px solid rgba(17, 13, 10, 0.18);
  padding: 3px 16px;
}

.hero-meta span:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-meta b {
  color: var(--red);
  margin-right: 6px;
}

.hero-note {
  background: rgba(17, 13, 10, 0.9);
  bottom: 28px;
  color: var(--paper-light);
  max-width: 300px;
  padding: 18px 20px;
  position: absolute;
  right: 28px;
  z-index: 3;
}

.hero-note span {
  color: #d7bd84;
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-note strong {
  font-family: var(--font-display);
  font-size: 21px;
}

.section {
  margin: 0 auto;
  max-width: 1320px;
  padding: 104px 24px;
}

.story-band {
  background: #17110d;
  border-bottom: 1px solid var(--light-line);
  box-shadow: inset 0 0 160px 44px rgba(0, 0, 0, 0.6);
  color: var(--paper-light);
}

.story-shell {
  margin: 0 auto;
  max-width: 1320px;
  padding: 104px 24px;
}

.story-heading {
  align-items: end;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.72fr);
}

.story-heading .eyebrow {
  color: #df625d;
}

.story-heading h2 {
  font-size: 64px;
  line-height: 0.95;
  margin-bottom: 0;
  text-transform: uppercase;
}

.story-intro > p {
  color: #cbbd9f;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.story-grid {
  display: grid;
  gap: 30px 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 54px;
}

.story-card {
  border-top: 1px solid rgba(241, 228, 197, 0.2);
  min-width: 0;
  padding-top: 12px;
}

.story-card img {
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 180ms ease, transform 220ms ease;
  width: 100%;
}

.story-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.012);
}

/* Sits below the plate: the artwork already carries its own label block in the
   top-left corner, so an overlay collides with it. */
.story-card span {
  color: #df625d;
  display: block;
  font: 600 11px var(--font-label);
  letter-spacing: 0.07em;
  margin-top: 15px;
  text-transform: uppercase;
}

.story-card h3 {
  font-size: 25px;
  line-height: 1.14;
  margin: 8px 0 0;
}

.section-heading {
  max-width: 850px;
}

.section-heading h2,
.lore-copy h2,
.oath-shell h2 {
  font-size: 64px;
  line-height: 0.95;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.section-heading > p:last-child {
  color: var(--smoke);
  font-size: 19px;
  line-height: 1.6;
  max-width: 720px;
}

/* Seal III is the project's own tile, so it gets the wider column. */
.seal-grid {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
  margin-top: 54px;
}

.seal-item:last-child {
  background: rgba(198, 43, 45, 0.05);
}

.seal-item:last-child .seal-number {
  color: rgba(198, 43, 45, 0.27);
}

.seal-item {
  min-height: 360px;
  padding: 34px 34px 38px;
  position: relative;
}

.seal-item + .seal-item {
  border-left: 1px solid var(--line);
}

.seal-number {
  color: rgba(198, 43, 45, 0.17);
  font-family: var(--font-display);
  font-size: 112px;
  line-height: 0.8;
  position: absolute;
  right: 24px;
  top: 28px;
  transform: rotate(-4deg);
}

.seal-item .eyebrow {
  margin-top: 150px;
}

.seal-item h3,
.asset-item h3 {
  font-size: 31px;
  line-height: 1;
  margin-bottom: 15px;
}

.seal-item > p:last-child {
  color: var(--smoke);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 0;
}

.lore-band {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.lore-shell {
  align-items: center;
  display: grid;
  gap: 74px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  margin: 0 auto;
  max-width: 1320px;
  padding: 94px 24px;
}

.lore-art {
  margin: 0;
  position: relative;
}

.lore-art img {
  border: 1px solid rgba(17, 13, 10, 0.2);
  box-shadow: var(--shadow);
  width: 100%;
}

.lore-art figcaption {
  background: var(--ink);
  bottom: 18px;
  color: var(--paper-light);
  font: 600 12px var(--font-label);
  transform: rotate(-1.1deg);
  padding: 13px 15px;
  position: absolute;
  right: 18px;
  text-transform: uppercase;
}

.chapter {
  border-top: 1px solid rgba(17, 13, 10, 0.2);
  display: grid;
  gap: 18px;
  grid-template-columns: 44px 1fr;
  padding: 19px 0;
}

.chapter:last-child {
  border-bottom: 1px solid rgba(17, 13, 10, 0.2);
}

.chapter span {
  color: var(--red);
  font: 600 12px var(--font-label);
  padding-top: 5px;
}

.chapter p {
  color: #4e463d;
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 0;
}

.oath-band {
  background: var(--ink);
  box-shadow: inset 0 0 170px 46px rgba(0, 0, 0, 0.55);
  color: var(--paper-light);
}

/* The oath is the one centred section: it reads as a creed, not another
   left-aligned content block. */
.oath-shell {
  margin: 0 auto;
  max-width: 1320px;
  padding: 118px 24px;
  text-align: center;
}

.oath-shell .eyebrow {
  color: #dd665f;
}

.oath-shell h2 {
  font-size: 76px;
  margin-inline: auto;
  max-width: 980px;
}

.oath-copy {
  color: #cbbd9f;
  font-size: 21px;
  line-height: 1.55;
  margin-inline: auto;
  max-width: 700px;
}

.oath-points {
  border-bottom: 1px solid var(--light-line);
  border-top: 1px solid var(--light-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
}

.oath-points span {
  font: 600 13px var(--font-label);
  padding: 22px;
  text-align: center;
  text-transform: uppercase;
}

.oath-points span + span {
  border-left: 1px solid var(--light-line);
}

.asset-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 54px;
}

.asset-item {
  background: rgba(247, 237, 218, 0.62);
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 220px 1fr;
  min-height: 260px;
  padding: 22px;
}

.asset-item > div:last-child {
  align-self: center;
}

.asset-preview {
  align-items: center;
  background: var(--paper-deep);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.asset-preview-pfp img {
  border: 1px solid rgba(17, 13, 10, 0.18);
  border-radius: 8px;
  height: 180px;
  object-fit: cover;
  width: 180px;
}

.asset-item-banner {
  grid-template-columns: 1fr;
}

.asset-preview-banner {
  aspect-ratio: 3 / 1;
  width: 100%;
}

.asset-preview-banner img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.text-link {
  color: var(--red-dark);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 8px;
  padding-bottom: 4px;
  text-transform: uppercase;
}

.text-link:hover {
  border-bottom: 1px solid var(--red-dark);
}

.keeper-actions {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.keeper-actions span {
  font-size: 15px;
  font-weight: 700;
  padding: 22px;
  text-align: center;
}

.keeper-actions span + span {
  border-left: 1px solid var(--line);
}

.keeper-actions b {
  color: var(--red);
  font-family: var(--font-label);
  margin-right: 8px;
}

footer {
  align-items: start;
  background: var(--ink);
  border-top: 1px solid var(--light-line);
  color: #b8aa8e;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  padding: 38px max(24px, calc((100vw - 1272px) / 2));
}

footer strong,
footer span {
  display: block;
}

footer strong {
  color: var(--paper-light);
  font-family: var(--font-display);
}

footer span {
  font: 400 11px var(--font-label);
  margin-top: 6px;
  text-transform: uppercase;
}

footer p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-width: 700px;
}

.community-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* Any author display value outranks the user agent's [hidden] rule, so the
   hidden attribute stops working unless it is restored here. */
.community-links[hidden] {
  display: none;
}

.community-links [hidden] {
  display: none;
}

.community-links a {
  border-bottom: 1px solid rgba(241, 228, 197, 0.28);
  color: var(--paper-light);
  font: 600 11px var(--font-label);
  letter-spacing: 0.07em;
  padding-bottom: 3px;
  text-transform: uppercase;
}

.community-links a:hover {
  border-bottom-color: var(--red);
}

.community-links .contract {
  color: #8d8168;
  font: 400 10px var(--font-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community-links code {
  color: #b8aa8e;
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 4px;
  overflow-wrap: anywhere;
  text-transform: none;
}

/* Reserved for the handful of section openings that earn a beat, not every
   block on the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav-shell {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .nav-links {
    display: flex;
    flex: 1 0 100%;
    justify-content: flex-start;
    margin-inline: -13px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  h1 {
    font-size: 88px;
  }

  .hero-inner {
    width: 70%;
  }

  .section-heading h2,
  .lore-copy h2 {
    font-size: 52px;
  }

  .lore-shell {
    grid-template-columns: 1fr;
  }

  .lore-art {
    max-width: 760px;
  }

  .asset-item {
    grid-template-columns: 180px 1fr;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand img {
    height: 44px;
    width: 44px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-wash {
    background: linear-gradient(90deg, rgba(241, 228, 197, 0.98) 0%, rgba(241, 228, 197, 0.91) 68%, rgba(241, 228, 197, 0.35) 100%);
  }

  .hero-inner {
    min-height: 690px;
    padding: 48px 20px 118px;
    width: 100%;
  }

  h1 {
    font-size: 60px;
  }

  .hero-line {
    font-size: 27px;
  }

  .lede {
    font-size: 16px;
  }

  .hero-note {
    bottom: 16px;
    left: 20px;
    max-width: 280px;
    right: auto;
  }

  .section,
  .oath-shell,
  .lore-shell,
  .story-shell {
    padding: 72px 18px;
  }

  .section-heading h2,
  .lore-copy h2,
  .story-heading h2 {
    font-size: 42px;
  }

  .seal-grid,
  .asset-grid,
  .story-heading,
  .oath-points,
  .keeper-actions {
    grid-template-columns: 1fr;
  }

  .seal-item {
    min-height: 290px;
  }

  .seal-item + .seal-item,
  .oath-points span + span,
  .keeper-actions span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .oath-points span + span {
    border-top-color: var(--light-line);
  }

  .oath-shell h2 {
    font-size: 40px;
    overflow-wrap: anywhere;
  }

  .asset-item {
    grid-template-columns: 1fr;
  }

  .asset-preview-pfp {
    min-height: 0;
  }

  .asset-preview-banner {
    min-height: 0;
  }

  .story-heading {
    gap: 20px;
  }

  footer {
    flex-direction: column;
    padding: 34px 18px;
  }
}

@media (max-width: 500px) {
  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
  }

  h1 {
    font-size: clamp(36px, 14vw, 52px);
    overflow-wrap: break-word;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .oath-shell h2 {
    font-size: 36px;
  }

  .button {
    width: 100%;
  }

  .hero-meta span {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal.is-visible,
  .button,
  .nav-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
