:root {
  --ink: #11110f;
  --paper: #f4f2ec;
  --white: #fffefb;
  --muted: #67665f;
  --line: rgba(17, 17, 15, 0.2);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.reader-open { overflow: hidden; }
a, button { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header, footer {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 64px);
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 104px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 176px; }
.brand img, footer img { display: block; width: 100%; height: auto; }

.site-nav { display: flex; gap: clamp(22px, 3vw, 46px); align-items: center; }
.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(36px, 6vw, 100px);
  max-width: 1400px;
  min-height: 590px;
  margin: 0 auto;
  padding: clamp(88px, 9vw, 140px) clamp(20px, 4vw, 64px) 80px;
  overflow: hidden;
  align-items: end;
}
.intro-rule {
  position: absolute;
  top: 78px;
  right: clamp(20px, 4vw, 64px);
  left: clamp(20px, 4vw, 64px);
  height: 1px;
  background: var(--line);
}
.intro-heading, .intro-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7.8vw, 116px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.88;
}
h1 em { font-weight: 400; }
.intro-copy { max-width: 350px; padding-bottom: 8px; }
.intro-copy p {
  margin-bottom: 32px;
  color: #41403b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}
.intro-copy a, .guides-note a {
  display: inline-flex;
  gap: 15px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}
.intro-geometry {
  position: absolute;
  top: 102px;
  right: -65px;
  width: 410px;
  height: 330px;
  opacity: 0.3;
}
.intro-geometry span { position: absolute; display: block; border: 1px solid var(--ink); }
.intro-geometry span:nth-child(1) { inset: 0 40px; border-radius: 50%; }
.intro-geometry span:nth-child(2) {
  top: 80px;
  right: 0;
  width: 380px;
  height: 1px;
  border-width: 1px 0 0;
  transform: rotate(-32deg);
}
.intro-geometry span:nth-child(3) {
  top: 0;
  left: 140px;
  width: 1px;
  height: 290px;
  border-width: 0 0 0 1px;
  transform: rotate(26deg);
}

.guides {
  padding: clamp(75px, 8vw, 120px) clamp(20px, 4vw, 64px) 72px;
  background: var(--ink);
  color: var(--white);
}
.guides > * { max-width: 1272px; margin-right: auto; margin-left: auto; }
.section-heading {
  display: flex;
  gap: 40px;
  margin-bottom: 52px;
  align-items: end;
  justify-content: space-between;
}
.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.96;
}
.section-heading > p {
  max-width: 260px;
  margin-bottom: 5px;
  color: #aaa9a3;
  font-size: 12px;
  line-height: 1.55;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}
.guide-card {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #171715;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.guide-card:hover { border-color: rgba(255, 255, 255, 0.62); transform: translateY(-5px); }
.cover-button {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: #ededeb;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.cover-button img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 612 / 792;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms var(--ease), opacity 300ms ease;
}
.cover-button:hover img, .cover-button:focus-visible img { opacity: 0.9; transform: scale(1.018); }
.guide-number {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.cover-action {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  min-height: 42px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms var(--ease);
}
.cover-button:hover .cover-action, .cover-button:focus-visible .cover-action { opacity: 1; transform: translateY(0); }
.guide-copy { display: flex; min-width: 0; padding: 36px 30px 28px; flex-direction: column; }
.guide-copy .eyebrow { color: #a6a59e; }
.guide-copy h3 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 2.3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.01;
}
.guide-copy > p:not(.eyebrow) { margin-bottom: 24px; color: #bdbcb5; font-size: 12px; line-height: 1.65; }
.guide-copy ul { display: grid; margin: 0 0 30px; padding: 0; list-style: none; }
.guide-copy li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: #dddcd5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}
.guide-copy li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.17); }
.read-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.read-button:hover, .read-button:focus-visible { background: transparent; color: var(--white); }
.guides-note {
  display: flex;
  gap: 32px;
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  align-items: center;
  justify-content: space-between;
}
.guides-note p {
  max-width: 560px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.2;
}

footer { min-height: 140px; border-top: 1px solid var(--line); }
footer img { width: 138px; }
footer p { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }

.pdf-dialog {
  width: min(1240px, calc(100vw - 30px));
  max-width: none;
  height: min(920px, calc(100dvh - 30px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
}
.pdf-dialog::backdrop { background: rgba(7, 7, 6, 0.86); backdrop-filter: blur(8px); }
.pdf-dialog[open] { animation: reader-in 330ms var(--ease) both; }
@keyframes reader-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
.reader-shell { display: flex; height: 100%; padding: 22px; flex-direction: column; }
.reader-header { display: flex; gap: 24px; padding-bottom: 18px; align-items: center; justify-content: space-between; }
.reader-header .eyebrow { margin-bottom: 8px; color: #aaa9a2; }
.reader-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.reader-actions { display: flex; gap: 12px; align-items: center; }
.reader-actions a, .reader-actions button, .mobile-reader-bar a {
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.reader-actions a { gap: 12px; }
.reader-actions button {
  width: 42px;
  padding: 0 0 3px;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
.reader-actions a:hover, .reader-actions a:focus-visible, .reader-actions button:hover,
.reader-actions button:focus-visible, .mobile-reader-bar a:hover, .mobile-reader-bar a:focus-visible {
  background: var(--white);
  color: var(--ink);
}
.pdf-frame-wrap {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #d7d7d7;
  flex: 1;
}
.pdf-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #d7d7d7; }
.mobile-reader-bar { display: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 1180px) {
  .cover-button img { min-height: 0; }
}

@media (max-width: 760px) {
  .site-header { min-height: 90px; }
  .brand { width: 126px; }
  .site-nav { gap: 20px; }
  .site-nav a:first-child, .site-nav a:last-child { display: none; }
  .intro { display: block; min-height: 560px; padding-top: 115px; padding-bottom: 58px; }
  .intro-rule { top: 62px; }
  h1 { font-size: clamp(54px, 16vw, 80px); }
  .intro-copy { margin-top: 50px; }
  .intro-geometry { top: 145px; right: -150px; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading h2 { font-size: 44px; }
  .section-heading > p { margin-top: 20px; }
  .guide-grid { grid-template-columns: 1fr; gap: 30px; }
  .guide-card { grid-template-columns: 1fr; }
  .cover-button { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .cover-button img { height: auto; min-height: 0; aspect-ratio: 612 / 792; }
  .guide-copy { padding: 28px 21px 22px; }
  .guides-note { align-items: flex-start; flex-direction: column; }
  footer { gap: 22px; align-items: flex-start; flex-direction: column; }
  .pdf-dialog { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .reader-shell { padding: 14px; }
  .reader-header h2 { font-size: 31px; }
  .reader-actions > a { display: none; }
  .mobile-reader-bar { display: flex; gap: 12px; padding-top: 12px; align-items: center; justify-content: space-between; }
  .mobile-reader-bar p { max-width: 220px; margin: 0; color: #aaa9a2; font-size: 9px; line-height: 1.45; }
  .mobile-reader-bar a { flex: 0 0 auto; }
}

@media (max-width: 560px) {
  .guide-card { grid-template-columns: 1fr; }
  .cover-button { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .cover-button img { min-height: 0; aspect-ratio: 612 / 792; }
  .cover-action { opacity: 1; transform: none; }
  .guide-copy h3 { font-size: 34px; }
  .reader-header .eyebrow { display: none; }
  .mobile-reader-bar p { max-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
