@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-medium.ttf") format("truetype");
}

@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-caslon-display.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --paper: #f8f4ee;
  --ink: #302932;
  --muted: #706471;
  --rose: #8d4c68;
  --line: #e3d9d8;
  --serif: "Libre Caslon Display", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font: 400 100%/1.65 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
p, h1, figure { margin: 0; }
a { color: inherit; }
::selection { background: #ead4de; color: var(--ink); }
a:focus-visible { outline: 2px solid var(--rose); outline-offset: 6px; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.page {
  max-width: 1600px;
  min-height: 100svh;
  padding: 0 clamp(24px, 5.5vw, 88px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 132px;
  position: relative;
  padding-right: 112px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: block; width: 68px; height: 68px; }
.brand-wordmark { display: flex; flex-direction: column; align-items: center; font-family: var(--serif); }
.brand-cozy { font-size: 31px; letter-spacing: .18em; padding-left: .18em; line-height: 1; }
.brand-chapters { font-size: 25px; letter-spacing: .055em; line-height: 1.15; }
.header-note { margin-left: auto; font-size: .875rem; line-height: 1.6; color: var(--muted); }
.bookmark {
  --bookmark-closed-width: 75px;
  --bookmark-open-width: min(280px, calc(100vw - 40px));
  --bookmark-top-height: 108px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: var(--bookmark-closed-width);
  overflow: hidden;
  background: var(--rose);
  color: #fffdf9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%);
}
.bookmark.is-open { width: var(--bookmark-open-width); }
.bookmark-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  height: var(--bookmark-top-height);
  padding: 24px 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
}
.bookmark-tag:hover { background: #ffffff0a; }
.bookmark-tag:focus-visible { outline: 2px solid #fffdf9; outline-offset: -6px; }
.bookmark-chevron { width: 14px; height: 14px; flex-shrink: 0; opacity: .75; }
.bookmark.is-open .bookmark-chevron { transform: rotate(180deg); }
.bookmark-secret { display: grid; grid-template-rows: 0fr; opacity: 0; }
.bookmark.is-open .bookmark-secret { grid-template-rows: 1fr; opacity: 1; }
.bookmark-secret-inner { min-height: 0; overflow: hidden; }
.bookmark-copy { width: var(--bookmark-open-width); padding: 10px 24px 48px; text-align: center; }
.bookmark-whisper { font-size: .875rem; color: #f4dfe8; }
.bookmark-message { margin-top: 18px; font: 400 32px/1.13 var(--serif); letter-spacing: -.01em; }
.bookmark-ornament { display: block; width: 64px; height: 20px; margin: 23px auto 16px; color: #e8c0c2; }
.bookmark-postscript { font-size: .875rem; color: #f4dfe8; }
main { flex: 1; display: grid; align-items: center; }
.coming-soon {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 5.5vw, 88px);
  padding-block: 30px 58px;
}
.story { padding-block: 12px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--muted); margin-bottom: 30px; }
.eyebrow svg { width: 29px; height: 29px; flex-shrink: 0; color: var(--rose); }
h1 { font: 400 clamp(58px, 6.25vw, 96px)/.99 var(--serif); letter-spacing: -.035em; }
h1 em { color: var(--rose); font-weight: 400; }
.description, .invitation { max-width: 390px; font-size: 1rem; }
.description { margin-top: 32px; }
.invitation { margin-top: 16px; color: var(--muted); }
.launch-note { display: flex; align-items: flex-start; gap: 18px; margin-top: 34px; font-size: .875rem; }
.note-line { width: 40px; height: 1px; background: var(--rose); margin-top: 12px; flex-shrink: 0; }
.launch-note p { font-weight: 500; }
.launch-note p span { color: var(--muted); font-weight: 400; }
.signup { max-width: 410px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.signup h2 { margin: 0 0 16px; font: 400 26px/1.2 var(--serif); letter-spacing: -.01em; }
.email-label { display: block; margin-bottom: 7px; font-size: .875rem; }
.signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.signup-row input { min-width: 0; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #c8b9c2; border-radius: 6px; background: #fffdf9; color: var(--ink); font: inherit; font-size: 1rem; }
.signup-row input::placeholder { color: var(--muted); }
.signup-submit { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 6px; background: var(--rose); color: #fffdf9; font: 500 .875rem/1.5 "DM Sans", system-ui, sans-serif; cursor: pointer; touch-action: manipulation; }
.signup-submit:hover { background: #743b55; }
.signup-submit:disabled { opacity: .65; cursor: wait; }
.signup :is(input, button):focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.signup-consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-top: 14px; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.signup-consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rose); }
.signup-privacy { margin-top: 7px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.signup-status { margin-top: 12px; font-size: .875rem; line-height: 1.6; }
.signup-status:empty { display: none; }
.signup-status.is-error { color: #963f47; }
.signup-status.is-success { padding-left: 14px; border-left: 2px solid var(--rose); color: var(--rose); }
.instagram-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 24px; color: var(--muted); font-size: .8125rem; line-height: 1.5; text-decoration: none; }
.instagram-link svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--rose); }
.instagram-handle { display: block; color: var(--rose); font-size: .9375rem; }
.instagram-link:hover .instagram-handle { text-decoration: underline; text-underline-offset: 4px; }
.glimpse { position: relative; width: 100%; max-width: 580px; justify-self: end; padding-top: 4px; }
.photo-frame { padding: 10px; border: 1px solid #d2c1c4; border-radius: 48% 48% 3px 3px; }
.hero-photo { display: block; width: 100%; height: clamp(420px, 40vw, 610px); object-fit: cover; object-position: 66% center; border-radius: 48% 48% 0 0; background: #e9ddd3; }
.photo-note {
  position: absolute;
  bottom: 79px;
  left: -28px;
  padding: 20px 26px;
  background: #f0e6e9;
  border: 1px solid #e3d2d8;
  color: #634357;
  font: 400 27px/1.13 var(--serif);
  transform: rotate(-5deg);
}
figcaption { padding: 16px 0 0; text-align: right; font-size: .8125rem; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 24px 28px; font-size: .8125rem; color: var(--muted); }
.site-footer p:first-child span { margin-inline: 4px; }
.footer-message { font: 400 21px/1.3 var(--serif); color: #634357; }
.footer-brand { white-space: nowrap; }

.magic-dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.magic-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.magic-toggle[hidden] { display: none; }
.magic-toggle svg { width: 18px; height: 18px; color: var(--rose); }
.magic-toggle:hover { border-color: #b99ba9; color: var(--rose); }
.magic-toggle:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

@media (min-width: 1700px) {
  .coming-soon { padding-block: 56px 80px; }
}
@media (max-width: 1100px) {
  .coming-soon { gap: 44px; }
  h1 { font-size: clamp(56px, 6.5vw, 72px); }
  .eyebrow { font-size: .8125rem; gap: 8px; }
  .hero-photo { height: 480px; }
  .photo-note { left: -20px; font-size: 24px; padding: 17px 20px; }
  .footer-message { font-size: 19px; }
}
@media (max-width: 760px) {
  .page { padding-inline: 26px; }
  .site-header { min-height: 112px; padding-right: 80px; }
  .brand { gap: 8px; }
  .brand-mark { width: 54px; height: 54px; }
  .brand-cozy { font-size: 26px; }
  .brand-chapters { font-size: 21px; }
  .header-note { display: none; }
  .bookmark { --bookmark-closed-width: 61px; --bookmark-top-height: 92px; }
  .bookmark-tag { padding-top: 18px; gap: 3px; font-size: .8125rem; }
  .coming-soon { grid-template-columns: 1fr; padding-block: 20px 36px; gap: 34px; }
  .story { padding-block: 0; }
  .eyebrow { margin-bottom: 25px; font-size: .8125rem; }
  .eyebrow svg { width: 25px; height: 25px; }
  h1 { font-size: clamp(55px, 10.5vw, 78px); }
  .description, .invitation { max-width: 450px; }
  .description { margin-top: 26px; }
  .launch-note { margin-top: 26px; }
  .glimpse { max-width: 520px; justify-self: center; padding-inline: 9px; }
  .hero-photo { height: clamp(340px, 76vw, 480px); }
  .photo-note { left: -3px; bottom: 70px; font-size: 25px; }
  figcaption { font-size: .8125rem; padding-top: 13px; }
  .site-footer { flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; padding-block: 22px; }
  .footer-message { width: 100%; order: -1; font-size: 22px; }
  .footer-brand { display: none; }
}
@media (max-width: 360px) {
  .signup-row { grid-template-columns: minmax(0, 1fr); }
  .page { padding-inline: 20px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-cozy { font-size: 24px; }
  .brand-chapters { font-size: 19px; }
  .eyebrow { max-width: 250px; }
  h1 { font-size: 50px; }
  .hero-photo { height: 320px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bookmark { transition: width 480ms cubic-bezier(.22, 1, .36, 1); }
  .bookmark-secret { transition: grid-template-rows 520ms cubic-bezier(.22, 1, .36, 1), opacity 350ms ease; }
  .bookmark-chevron { transition: transform 350ms ease; }
  .story, .glimpse { animation: arrive 700ms cubic-bezier(.22, 1, .36, 1) both; }
  .glimpse { animation-delay: 100ms; }
  @keyframes arrive { from { transform: translateY(12px); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .magic-dust, .magic-toggle { display: none; }
}
