@font-face {
  font-family: "Nunito Sans";
  src: url("assets/nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f5eb;
  --ink: #171626;
  --muted: #484455;
  --line: #c9c0b0;
  --blue: #332cb4;
  --lavender: #e5dcff;
  --yellow: #ffe070;
  --white: #fffcf5;
  --type: "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 650 1rem/1.5 var(--type);
}

h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: 28px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.shell {
  width: min(100% - 72px, 1160px);
  margin-inline: auto;
}

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-header { padding-block: 24px; border-bottom: 1px solid var(--line); }

.brand {
  font-size: 1.27rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-decoration: none;
}

.site-header nav { display: flex; align-items: center; gap: 24px; }
.nav-link { text-decoration: none; font-weight: 800; }
.nav-link:hover, .brand:hover { color: var(--blue); }

.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  padding: 11px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.action span { flex: none; font-size: 1.23em; }
.action:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.action:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.action--yellow { background: var(--yellow); }
.action--light { background: var(--white); }
.action--small { min-height: 42px; padding: 7px 12px; border-radius: 9px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 5.8vw, 80px);
}

h1, h2, h3 { font-weight: 950; letter-spacing: -0.045em; }

.hero h1 {
  font-size: clamp(2.2rem, 4.05vw, 3.65rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-company {
  background: linear-gradient(transparent 73%, var(--yellow) 73% 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 0.96; }
h3 { font-size: clamp(1.55rem, 2.35vw, 2.2rem); line-height: 0.98; }
.period { color: var(--blue); }

.hero-intro {
  max-width: 48ch;
  margin-block: 18px 12px;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
}

.hero-intro strong { font-weight: 900; }

.hero-lead {
  max-width: 49ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.hero-note {
  position: relative;
  max-width: 53ch;
  margin: 0 4px 22px 0;
  padding: 15px 18px 14px;
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--blue);
  border-radius: 3px 12px 9px 4px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--lavender);
}

.hero-note::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 20px;
  width: 62px;
  height: 17px;
  background: #ffe070c9;
  transform: rotate(8deg);
  pointer-events: none;
}

.hero-aside { margin-top: 5px; color: var(--muted); font-style: italic; }

.hero-folder {
  position: relative;
  isolation: isolate;
  width: min(100%, 430px);
  margin: 22px 0 14px;
  padding: 10px 20px 16px 12px;
  justify-self: center;
}

.folder-paper {
  position: absolute;
  z-index: -1;
  inset: 22px 8px 0;
  border: 2px solid var(--ink);
  border-radius: 5px 15px 16px 15px;
  background: var(--lavender);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(5deg);
}

.folder-paper::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: -2px;
  width: 43%;
  height: 27px;
  margin-bottom: -2px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 11px 16px 0 0;
  background: var(--lavender);
}

.profile {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3.5deg);
  transition: transform 260ms ease-out;
}

.profile > img { width: 100%; }

.hero-smile {
  position: absolute;
  top: 3px;
  right: 0;
  display: grid;
  place-items: center;
  width: clamp(76px, 9vw, 113px);
  aspect-ratio: 1;
  padding: 0 6px 5px 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: clamp(2.8rem, 6vw, 4.65rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.07em;
  cursor: pointer;
  transform: rotate(14deg);
  transition: transform 220ms ease-out, background-color 180ms ease-out;
}

.hero-smile:hover { transform: rotate(7deg) translateY(-3px); }
.hero-smile[aria-pressed="true"] { background: var(--lavender); transform: rotate(-13deg); }
.hero-smile .smile-wink, .hero-smile[aria-pressed="true"] .smile-open { display: none; }
.hero-smile[aria-pressed="true"] .smile-wink { display: block; }
.hero-folder:has(.hero-smile[aria-pressed="true"]) .profile { transform: rotate(-1deg) translateY(-4px); }

.profile figcaption {
  display: grid;
  gap: 2px;
  padding: 15px 19px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
}

.profile figcaption strong {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.story {
  padding-block: 38px 59px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(22px, 5vw, 63px);
}

.story h2 { max-width: 13ch; }
.story p { color: var(--muted); }
.section-heading p { max-width: 37ch; margin-top: 15px; font-size: 1.12rem; }

.rights-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rights-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.rights-list h3, .next-steps h3 { margin-bottom: 6px; font-size: 1.42rem; line-height: 1.1; }
.article { color: var(--blue); font-size: 0.87em; font-weight: 900; white-space: nowrap; }
.rights-sources { margin-top: 17px; }
.rights-sources a { color: var(--blue); font-weight: 850; text-underline-offset: 3px; }
.rights-sources p { margin-top: 7px; }

.next-steps { display: grid; gap: 22px; }
.history { border-top: 1px solid var(--line); }
.history summary { padding-block: 13px; color: var(--blue); cursor: pointer; font-weight: 900; }
.history[open] summary { margin-bottom: 7px; }

.timeline { list-style: none; padding: 0; }
.timeline li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.timeline time { color: var(--blue); font-weight: 950; }
.timeline p { margin-top: 3px; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(24px, 5vw, 67px);
  padding: clamp(24px, 4.5vw, 58px);
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
}

.contact h2 { max-width: 11ch; }
.contact h2 span { color: var(--yellow); }
.contact-copy p { max-width: 50ch; margin-top: 14px; }
.contact-copy strong { color: var(--yellow); }
.contact-copy .action { margin-top: 24px; }
.contact .action { box-shadow: 3px 3px 0 #9684df; }
.contact .action:hover { box-shadow: 4px 4px 0 #9684df; }
.contact .action:focus-visible { outline-color: var(--yellow); }

.message {
  padding: clamp(16px, 2.7vw, 28px);
  border-radius: 14px;
  background: var(--lavender);
  color: var(--ink);
}

.message-label { margin-bottom: 10px; font-weight: 950; }
.copy-button {
  margin-top: 15px;
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.copy-button:hover { background: var(--yellow); }
.message-status:not(:empty) { margin-top: 7px; font-size: 0.9rem; }

.site-footer { padding-block: 25px 33px; color: var(--muted); font-size: 0.93rem; }
.site-footer a { text-underline-offset: 3px; }

.holding {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 26px;
  background: var(--lavender);
}

.holding-sheet {
  display: grid;
  justify-items: start;
  gap: 28px;
  width: min(100%, 810px);
  padding: clamp(25px, 6vw, 68px);
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}

.holding-sticker { width: min(100%, 285px); transform: rotate(-5deg); }
.holding h1 { font-size: clamp(2.25rem, 6.8vw, 5.45rem); line-height: 0.97; }

@media (max-width: 900px) {
  .shell { width: min(100% - 48px, 720px); }
  .hero { gap: 26px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .site-header { padding-block: 18px; }
  .site-header nav { gap: 0; }
  .nav-link { display: none; }
  .hero, .story, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 28px; padding-block: 35px 44px; }
  .hero h1 { font-size: clamp(2rem, 6.8vw, 2.85rem); }
  .hero-folder { width: min(100% - 10px, 385px); }
  .story { padding-block: 29px 43px; }
  .contact { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action, .profile, .hero-smile { transition: none; }
}
