:root {
  color-scheme: light;
  --forest: #404A3A;
  --ink: #59574F;
  --berry: #873E57;
  --paper: #F7F3EC;
  --linen: #E8DCCD;
  --wood: #B99B79;
  --line: #B99B79;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 91% 12%, var(--linen) 0, transparent 28%),
    radial-gradient(ellipse at 4% 82%, #D5A0A8 0, transparent 30%), var(--paper);
  font: 16px/1.65 Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--forest); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 6px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(247, 243, 236, .94);
  border-bottom: 1px solid var(--line);
}
.brand { display: block; width: 145px; height: 74px; overflow: hidden; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.back-link { font-size: 13px; font-weight: bold; text-decoration-thickness: 1px; text-underline-offset: 5px; white-space: nowrap; }
main { max-width: 1120px; margin: 0 auto; padding: clamp(38px, 6vw, 78px) 24px 90px; }
.eyebrow { margin: 0 0 14px; color: var(--berry); font-size: 11px; font-weight: bold; letter-spacing: .2em; }
h1, h2 { color: var(--forest); font-family: Georgia, serif; font-weight: normal; line-height: 1.08; }
h1 { margin: 0 0 18px; font-size: clamp(42px, 5.4vw, 73px); letter-spacing: -.035em; }
h2 { margin: 0 0 18px; font-size: clamp(31px, 3vw, 42px); letter-spacing: -.025em; }
h1 em, h2 em { color: var(--berry); font-weight: normal; }
p { margin: 0 0 18px; }
.access-intro { max-width: 710px; margin-bottom: 40px; }
.access-intro > p:last-child { max-width: 660px; color: var(--ink); font-size: 17px; }
.materials-intro { max-width: 760px; }
.materials-intro > p:last-child { color: var(--ink); }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr); gap: 22px; align-items: stretch; }
.card { background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 20px 55px rgba(64, 74, 58, .07); }
.recovery-card { padding: clamp(26px, 4vw, 48px); border-top: 4px solid var(--forest); }
.recovery-card > p:not(.eyebrow):not(.note):not(.form-message) { color: var(--ink); max-width: 470px; }
.form-message { padding: 13px 17px; background: var(--linen); border-left: 3px solid var(--forest); color: var(--forest); }
form { margin-top: 29px; }
label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: bold; }
input:not([type=hidden]) { display: block; width: 100%; max-width: 470px; padding: 13px 15px; border: 1px solid var(--wood); border-radius: 2px; background: white; color: var(--ink); font: inherit; }
input::placeholder { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; max-width: 100%; margin-top: 16px; padding: 12px 23px; border: 1px solid var(--berry); border-radius: 999px; background: var(--berry); color: white; font: bold 14px/1.4 Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: #713149; transform: translateY(-1px); }
.note { max-width: 510px; margin: 24px 0 0; color: var(--ink); font-size: 13px; line-height: 1.65; }
.access-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 450px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(circle at 90% 7%, rgba(255,255,255,.8), transparent 30%), radial-gradient(ellipse at 15% 90%, #D5A0A8, transparent 48%), var(--linen); }
.access-aside::after { content: ''; position: absolute; right: -90px; bottom: -170px; width: 330px; height: 330px; border: 1px solid rgba(135,62,87,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.14), 0 0 0 75px rgba(135,62,87,.04); pointer-events: none; }
.access-aside > * { position: relative; z-index: 1; }
.access-aside h2 { max-width: 380px; }
.access-aside > p:not(.eyebrow) { max-width: 370px; }
.aside-flower { position: absolute; top: -30px; right: 20px; color: rgba(135,62,87,.12); font: 250px/1 Georgia, serif; z-index: 0; }
.aside-rule { width: 60px; height: 1px; margin: 8px 0 24px; background: var(--berry); }
.aside-note { font-size: 14px; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; margin: 28px 0; }
.material-card { min-width: 0; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(64,74,58,.07); overflow: hidden; }
.material-media { aspect-ratio: 4/4.4; background-color: var(--linen); background-size: 265% auto; background-repeat: no-repeat; position: relative; }
.material-media.is-ebook { background-size: cover; }
.material-media.fallback { display: grid; place-items: center; color: var(--berry); font: italic 72px Georgia, serif; }
.material-body { padding: 22px; }
.material-type { margin: 0; color: var(--berry); font-size: 11px; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; }
.material-body h2 { font-size: 28px; margin: 8px 0 16px; }
.material-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.material-files .button { max-width: 100%; overflow-wrap: anywhere; }
.material-help { margin-top: 24px; }
@media (max-width: 760px) {
  .access-layout { grid-template-columns: 1fr; }
  .access-aside { min-height: 0; padding: 34px; }
  .access-intro { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .top { padding: 3px 18px; }
  .brand { width: 120px; height: 65px; }
  .back-link { font-size: 12px; }
  main { padding: 34px 18px 60px; }
  h1 { font-size: clamp(39px, 10vw, 54px); }
  .access-intro > p:last-child { font-size: 15px; }
  .recovery-card, .access-aside { padding: 25px 22px; }
  .button { width: 100%; }
  .materials-grid { grid-template-columns: 1fr; gap: 18px; }
  .material-media { aspect-ratio: 4/3.5; }
  .material-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
