:root {
  --paper: #f6f2eb;
  --paper-deep: #ebe4da;
  --ink: #171615;
  --muted: #6d6862;
  --line: rgba(23, 22, 21, 0.14);
  --accent: #b35e74;
  --accent-dark: #7f354a;
  --white: #fffdf9;
  --radius: 26px;
  --shadow: 0 18px 55px rgba(47, 37, 31, 0.12);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(246, 242, 235, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(47, 37, 31, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 13px/1 Georgia, serif;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name { white-space: nowrap; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a,
.nav-arc,
.nav-contact {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.site-nav a:hover,
.nav-arc:hover,
.nav-contact:hover { background: var(--paper-deep); }
.nav-arc,
.nav-contact {
  font: inherit;
}
.nav-contact {
  margin-left: 4px;
  background: var(--ink);
  color: var(--paper);
}
.nav-contact:hover { background: #34302c; }

.menu-toggle { display: none; }

main { overflow: clip; }
.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: 690px;
  margin: 18px auto 0;
  padding: clamp(52px, 8vw, 110px) clamp(24px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  border-radius: 38px;
  background: var(--white);
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: 12%;
  top: 15%;
  border-radius: 50%;
  background: rgba(179, 94, 116, 0.12);
  filter: blur(2px);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.about-copy h2,
.social-section h2,
.book-dialog h2,
.contact-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: .98;
}
.hero h1 { font-size: clamp(3.5rem, 7.4vw, 6rem); max-width: 760px; }
.hero-text {
  max-width: 580px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.primary-button,
.retailer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .18s ease, background .18s ease;
}
.primary-button:hover,
.retailer-link:hover { transform: translateY(-2px); background: #34302c; }

.hero-art { min-width: 0; }
.book-stack {
  position: relative;
  height: 520px;
  max-width: 470px;
  margin: auto;
}
.book-stack img {
  position: absolute;
  width: 235px;
  aspect-ratio: 943 / 1500;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.book-stack img:nth-child(1) { left: 0; top: 70px; transform: rotate(-8deg); }
.book-stack img:nth-child(2) { left: 118px; top: 0; z-index: 2; transform: rotate(2deg); }
.book-stack img:nth-child(3) { right: 0; top: 95px; transform: rotate(10deg); }

.shop-section,
.about-section,
.updates-section,
.social-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}
.section-heading h2,
.about-copy h2,
.updates-copy h2,
.social-section h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.section-heading > p {
  max-width: 300px;
  margin: 0 0 8px;
  color: var(--muted);
  text-align: right;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 20px;
}
.product-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.book-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 11px;
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
}
.product-cover-button {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.product-cover-button img {
  width: 100%;
  aspect-ratio: 943 / 1500;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.product-card:hover img { transform: scale(1.025); filter: saturate(1.05); }
.product-meta {
  padding: 15px 3px 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-meta h3 {
  margin: 0 0 4px;
  min-height: 2.4em;
  font: 600 clamp(1.08rem, 1.7vw, 1.3rem)/1.2 Georgia, serif;
  letter-spacing: -0.02em;
}
.product-meta p {
  margin: 0;
  min-height: 2.7em;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.about-card {
  padding: clamp(34px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.35fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  border-radius: 38px;
  background: #1d1b19;
  color: var(--paper);
}
.about-monogram {
  aspect-ratio: 1;
  overflow: hidden;
}

.about-monogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy .eyebrow { color: #d79aac; }
.about-copy h2 { margin-bottom: 28px; }
.about-copy p {
  max-width: 700px;
  color: #ccc4ba;
  font-size: 1.05rem;
}
.text-button {
  margin-top: 18px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.social-section {
  padding-bottom: 110px;
  text-align: center;
}
.social-links {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.social-link {
  min-width: 135px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,.35);
}
.social-link:hover { border-color: rgba(23,22,21,.38); background: var(--white); }


/* Email updates */
.updates-section {
  padding-top: 90px;
}
.updates-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  padding: clamp(38px, 6vw, 72px);
  background: var(--white);
  border: 1px solid var(--line);
}
.updates-copy h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: .98;
}
.updates-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.updates-form {
  display: grid;
  gap: 14px;
}
.updates-email {
  display: grid;
  gap: 8px;
}
.updates-email > span {
  font-size: .84rem;
  font-weight: 700;
}
.updates-email input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.updates-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .88rem;
  cursor: pointer;
}
.updates-consent input {
  margin-top: .23em;
  accent-color: var(--ink);
  flex: 0 0 auto;
}
.updates-submit {
  width: fit-content;
  cursor: pointer;
}
.updates-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.updates-manage {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.updates-manage:hover {
  color: var(--ink);
}
.updates-note {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}
.updates-result {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .86rem;
  font-weight: 700;
}
.updates-manage-dialog {
    width: min(560px, calc(100% - 32px));
    padding: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.updates-manage-dialog::backdrop {
    background: rgba(23, 22, 21, .5);
}

.updates-manage-dialog-inner {
    position: relative;
    padding: clamp(28px, 5vw, 48px);
}

.updates-manage-dialog h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.04em;
}

.updates-manage-copy {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.55;
}

.updates-manage-dialog label {
    display: block;
    margin-bottom: 8px;
    font-size: .9rem;
    font-weight: 700;
}

.updates-manage-dialog input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 14px;
    border: 1px solid var(--line);
    background: #f7f3ed;
    color: var(--ink);
    font: inherit;
}

.updates-manage-dialog-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.updates-manage-cancel {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.updates-manage-close {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 600px) {
    .updates-manage-dialog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .updates-manage-cancel {
        text-align: center;
    }
}
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 22px;
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}
.site-footer p { margin: 0; text-align: center; }
.footer-brand { color: var(--ink); }
.back-top { justify-self: end; text-decoration: none; }

.book-dialog,
.contact-dialog {
  width: min(940px, calc(100% - 30px));
  max-height: min(760px, calc(100dvh - 30px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
  overflow: auto;
}
.book-dialog::backdrop,
.contact-dialog::backdrop {
  background: rgba(19, 17, 15, .72);
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: sticky;
  float: right;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 16px 16px -60px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,253,249,.92);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
  min-height: 600px;
}
.dialog-cover-wrap {
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  place-items: center;
  background: var(--paper-deep);
}
.dialog-cover {
  max-height: 540px;
  width: auto;
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.dialog-copy {
  padding: clamp(56px, 7vw, 86px) clamp(30px, 6vw, 70px);
  align-self: center;
}
.book-dialog h2,
.contact-dialog h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.dialog-blurb { color: var(--muted); font-size: 1.04rem; margin: 22px 0 30px; white-space: pre-line; }
.retailer-links { display: grid; gap: 10px; }
.retailer-link { width: 100%; }
.no-retailers {
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--paper);
}
.contact-dialog { max-width: 560px; }
.contact-dialog-copy { padding: 72px 50px 54px; }
.contact-dialog-copy p:not(.eyebrow) { color: var(--muted); margin: 22px 0 28px; }

.services-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 60px 0 0;
}
.services-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.services-group-title {
  margin: 24px 0 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.services-group-title:first-child {
  margin-top: 0;
}
.services-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  background: var(--white);
}

.services-copy {
  padding: clamp(38px, 6vw, 70px);
}

.services-copy h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.services-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.02rem;
}

.services-list {
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  align-content: center;
  background: var(--paper-deep);
}

.services-list span {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font: 500 1.25rem/1.2 Georgia, "Times New Roman", serif;
}

.services-list span:first-of-type {
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-art { padding-top: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 720px) {
  .site-header { width: calc(100% - 20px); margin-top: 10px; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--paper-deep);
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 1.5px; background: var(--ink); }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 24px;
    background: rgba(246,242,235,.98);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a, .nav-arc, .nav-contact { text-align: center; }
  .nav-contact { margin-left: 0; }

  .hero,
  .shop-section,
  .about-section,
  .updates-section,
  .social-section,
  .site-footer { width: calc(100% - 24px); }
    .services-section {
      width: calc(100% - 24px);
      padding-top: 60px;
    }

    .services-card {
      grid-template-columns: 1fr;
    }

    .services-copy {
      padding: 40px 28px;
    }

    .services-list {
      padding: 28px;
    }
  .hero { margin-top: 12px; padding: 60px 22px 38px; border-radius: 28px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .book-stack { height: 390px; max-width: 340px; }
  .book-stack img { width: 176px; }
  .book-stack img:nth-child(2) { left: 82px; }

  .shop-section, .about-section, .updates-section, .social-section { padding-top: 80px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; text-align: left; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .product-meta h3 { min-height: 2.4em; font-size: 1rem; }
  .product-meta p { min-height: 2.7em; font-size: .82rem; }

  .updates-card { grid-template-columns: 1fr; padding: 36px 24px; }
  .updates-submit { width: 100%; }
.updates-actions {
  flex-direction: column;
  align-items: stretch;
}

.updates-manage {
  text-align: right;
}

  .about-card { grid-template-columns: 1fr; border-radius: 28px; }
  .about-monogram { max-width: 230px; margin: auto; width: 100%; }
  .social-section { padding-bottom: 80px; }

  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .back-top { justify-self: center; }

  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-cover-wrap { padding: 56px 50px 35px; }
  .dialog-cover { max-height: 430px; }
  .dialog-copy { padding: 36px 28px 42px; }
  .contact-dialog-copy { padding: 68px 28px 42px; }
}

@media (max-width: 410px) {
  .brand-name { display: none; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .book-stack { transform: scale(.9); transform-origin: center top; margin-bottom: -35px; }
  .product-grid { gap-left: 10px; }
}

.announcement-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 110px 0 0;
}

.announcement-card {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1fr);
  background: var(--white);
}

.announcement-image-wrap {
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  place-items: center;
  background: var(--paper-deep);
}

.announcement-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.announcement-copy {
  padding: clamp(45px, 7vw, 85px);
  align-self: center;
}

.announcement-copy h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: .98;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.announcement-date,
.announcement-time {
  margin: 4px 0;
  font-weight: 700;
}

.announcement-location {
  margin: 14px 0 26px;
  color: var(--muted);
}

.announcement-text {
  margin: 0 0 30px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }

}

.site-header,
.site-nav,
.site-nav a,
.nav-arc,
.nav-contact,
.hero,
.primary-button,
.retailer-link,
.product-cover-button,
.about-card,
.social-link,
.book-dialog,
.contact-dialog,
.no-retailers {
  border-radius: 0;
}

/* Bookshelf and retailer options */
.product-card { cursor: default; }
.product-cover-button { text-decoration: none; }
.product-title-link { color: inherit; text-decoration: none; }
.product-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }
.product-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.product-action-primary { background: var(--ink); color: var(--paper); }
.product-action:hover { transform: translateY(-1px); }

.buy-dialog { width: min(780px, calc(100% - 30px)); }
.buy-dialog-layout { min-height: 460px; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); }
.buy-dialog-cover { max-height: 400px; }
.buy-dialog-copy { padding: clamp(46px,6vw,70px) clamp(28px,5vw,58px); }
.buy-options { margin-top: 24px; }
.buy-options .retailer-link { border-radius: 0; cursor: pointer; }
.secondary-buy-option { background: transparent; color: var(--ink); }
.secondary-buy-option:hover { color: var(--paper); }
.buy-dialog-view-book { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .88rem; }

@media (max-width: 720px) {
  .product-actions { grid-template-columns: 1fr; }
  .buy-dialog-layout { grid-template-columns: 1fr; }
  .buy-dialog-cover-wrap { padding: 38px 42px 25px; }
  .buy-dialog-copy { padding: 30px 26px 38px; }
}

@media (max-width: 720px) {
  .announcement-section { width: calc(100% - 24px); padding-top: 80px; }
  .announcement-card { grid-template-columns: 1fr; }
  .announcement-image-wrap { padding: 35px 25px; }
  .announcement-copy { padding: 40px 28px 48px; }
}
