/* Posy: a pressed-flower herbarium. Kept Lapis cloth, cream cotton pages. Light only. */

@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --lapis: #24399c;
  --lapis-deep: #17276c;
  --lapis-soft: #c5ccee;
  --paper: #f7f1e6;
  --card: #fffbf3;
  --fill: #ede5d5;
  --ink: #1b1b22;
  --muted: #5f5e6b;
  --line: #e2d7c1;
  --tape: rgba(233, 219, 184, 0.86);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--lapis);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lapis);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--card);
  padding: 8px 14px;
  z-index: 10;
}

/* Header */
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}
.mark img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(23, 39, 108, 0.25);
}
.bar nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 15px;
}
.bar nav a {
  color: var(--ink);
  text-decoration: none;
}
.bar nav a:hover,
.bar nav a[aria-current="page"] {
  color: var(--lapis);
  text-decoration: underline;
}

/* Home: hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(50px, 8.4vw, 104px);
  line-height: 0.98;
  color: var(--lapis);
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 28px 0 0;
  font-size: clamp(18px, 1.6vw, 20px);
  max-width: 30em;
}
.soon {
  margin: 34px 0 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
}
.soon::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--lapis);
  flex: none;
  transform: translateY(-4px);
}
.hero figure {
  margin: 0;
  position: relative;
}
.hero figure img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(27, 27, 34, 0.06), 0 18px 40px -18px rgba(23, 39, 108, 0.35);
}
.hero figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Home: the ritual, laid out like a herbarium sheet */
.sheet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sheet-inner {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(27, 27, 34, 0.04), 8px 14px 34px -22px rgba(60, 46, 20, 0.35);
  padding: clamp(32px, 6vw, 80px) clamp(22px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.sheet h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  max-width: 12em;
}
.steps {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  color: var(--lapis);
}
.steps h3 {
  font-size: 23px;
  line-height: 1.2;
}
.steps p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 34em;
}
.specimen {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 340px);
}
.specimen img {
  width: 100%;
}
.tape {
  position: absolute;
  width: 34%;
  height: 22px;
  background: var(--tape);
  box-shadow: 0 1px 1px rgba(80, 60, 20, 0.12);
}
.pressed {
  position: relative;
}
.specimen .tape {
  left: 36%;
  bottom: 13%;
  transform: rotate(-5deg);
}
.label {
  margin-top: 18px;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
}

/* Home: the lapis band */
.cloth {
  margin-top: clamp(64px, 9vw, 120px);
  background: var(--lapis) url("/assets/img/linen-lapis.webp") repeat;
  background-size: 512px;
  color: var(--card);
}
.cloth-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.cloth h2 {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--card);
}
.cloth p {
  margin: 22px 0 0;
  max-width: 34em;
  color: #e9ecfa;
}
.cloth a {
  color: var(--card);
}
.cloth .links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 16px;
}
.pansy {
  margin: 0;
  justify-self: center;
  width: min(100%, 320px);
  transform: rotate(-4deg);
  filter: drop-shadow(0 10px 18px rgba(8, 14, 50, 0.35));
}
.facts {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 0;
  max-width: 34em;
}
.facts li {
  padding: 13px 0;
  border-top: 1px solid rgba(197, 204, 238, 0.35);
}
.facts li:last-child {
  border-bottom: 1px solid rgba(197, 204, 238, 0.35);
}

/* Home: closing note */
.note {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
}
.note h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--lapis);
}
.note p {
  margin: 0;
  color: var(--muted);
  max-width: 32em;
}
.note p + p {
  margin-top: 14px;
}

/* Long-form pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gutter) 0;
}
.doc h1 {
  font-size: clamp(42px, 6.6vw, 72px);
  color: var(--lapis);
  letter-spacing: -0.02em;
}
.doc .meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.doc .intro {
  margin: 26px 0 0;
  font-size: 19px;
}
.doc h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.doc h3 {
  font-size: 21px;
  margin: 30px 0 0;
}
.doc p,
.doc ul,
.doc ol,
.doc dl {
  margin: 14px 0 0;
}
.doc ul,
.doc ol {
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: 8px;
}
.doc strong {
  font-weight: 600;
}
.toc {
  margin: 34px 0 0;
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--line);
}
.toc p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}
.toc ol {
  margin: 10px 0 0;
  columns: 2;
  column-gap: 28px;
  font-size: 15.5px;
}
.toc li {
  break-inside: avoid;
}
.panel {
  margin: 22px 0 0;
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lapis);
}
.panel > :first-child {
  margin-top: 0;
}
.address {
  font-style: normal;
}

/* Support */
.faq {
  margin: 14px 0 0;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--lapis);
  border-bottom: 1.5px solid var(--lapis);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-20%) rotate(-135deg);
}
.faq .answer {
  padding: 0 0 22px;
}
.faq .answer > :first-child {
  margin-top: 0;
}
.path {
  font-weight: 600;
}

/* 404 */
.lost {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) 0;
  text-align: center;
}
.lost img {
  width: 180px;
  margin: 0 auto 28px;
  transform: rotate(-6deg);
}
.lost h1 {
  font-size: clamp(40px, 6vw, 64px);
  color: var(--lapis);
}
.lost p {
  color: var(--muted);
}

/* Footer */
.foot {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: clamp(72px, 10vw, 128px) auto 0;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  font-size: 14.5px;
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: flex-end;
}
.foot nav a {
  color: var(--ink);
}
.foot p {
  margin: 0;
}
.foot .mark {
  font-size: 22px;
}
.foot .mark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.foot .small {
  margin-top: 14px;
  max-width: 40em;
}

@media (max-width: 860px) {
  .hero,
  .sheet-inner,
  .cloth-inner,
  .note {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero figure {
    max-width: 560px;
  }
  .sheet-inner .specimen {
    order: -1;
    width: min(62%, 260px);
  }
  .pansy {
    width: min(58%, 240px);
    order: -1;
  }
  .foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }
  .bar {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .mark {
    font-size: 23px;
  }
  .mark img {
    width: 30px;
    height: 30px;
  }
  .toc ol {
    columns: 1;
  }
  .steps li {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .steps li::before {
    font-size: 22px;
  }
  .faq summary {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
