/* Louies Carter Books: shared stylesheet
   Burgundy and gold design. System fonts only (Georgia for headings,
   Arial for text), so nothing is loaded from Google or other servers. */

:root {
  --ink: #481b26;
  --paper: #fcf6eb;
  --muted: #79636a;
  --gold: #ebc66b;
  --line: #e4d4ca
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

button:disabled {
  opacity: .55;
  cursor: wait
}

h1,
h2,
h3,
p {
  margin: 0
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.1
}

h2 {
  font-size: clamp(30px, 3.5vw, 49px);
  letter-spacing: -1.7px
}

h3 {
  font-size: 28px;
  letter-spacing: -.7px
}

.announcement {
  text-align: center;
  background: #f0dfb4;
  padding: 8px 18px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: bold
}

.announcement span {
  margin: 0 14px
}

.header {
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px
}

.wordmark {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -1.5px;
  line-height: 1;
  display: inline-block
}

.wordmark span {
  font-weight: normal
}

.wordmark small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 4px;
  margin-top: 9px;
  font-weight: normal
}

.header nav {
  display: flex;
  gap: 30px;
  font-size: 12px
}

.nav-cta {
  font-size: 12px;
  border-bottom: 1px solid;
  padding: 7px 0
}

.nav-cta span {
  margin-left: 25px
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 660px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden
}

.hero-copy {
  padding: 70px 8% 44px 10%
}

.eyebrow {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 18px
}

h1 {
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -3px;
  margin-bottom: 25px
}

h1 em {
  font-weight: normal;
  color: #f1cb71
}

.intro {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.9;
  color: #ead5d5;
  margin-bottom: 30px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border: 0;
  padding: 16px 22px;
  font-size: 12px;
  font-weight: 600
}

.cream {
  background: var(--paper);
  color: var(--ink)
}

.dark {
  background: var(--ink);
  color: var(--paper)
}

.hero-note {
  margin-top: 40px;
  font-size: 10px;
  letter-spacing: .7px;
  color: #d9bbc0;
  display: flex;
  align-items: center;
  gap: 12px
}

.star {
  font-size: 23px;
  color: #eac466
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 40% 50%, #7c3a48 0%, #592331 52%, #481b26 85%);
  min-height: 600px
}

.time {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 170px;
  color: #f0ca7520;
  top: 22px;
  right: 20px;
  letter-spacing: -10px
}

.book-stack {
  width: 360px;
  height: 440px;
  position: relative;
  margin-top: 30px
}

.book-stack img {
  position: absolute;
  width: 235px;
  height: 352px;
  object-fit: cover;
  box-shadow: 15px 20px 35px #1c071480;
  border-radius: 2px
}

.front-book {
  transform: rotate(-9deg);
  top: 40px;
  left: 15px;
  z-index: 2
}

.back-book {
  transform: rotate(12deg);
  left: 135px;
  top: 10px;
  filter: brightness(.85)
}

.art-caption {
  position: absolute;
  bottom: 30px;
  right: 30px;
  text-align: right;
  font-size: 8px;
  letter-spacing: 2px;
  line-height: 1.9;
  color: #ecd3b2
}

.ribbon {
  display: flex;
  justify-content: space-between;
  padding: 18px 6%;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted)
}

.ribbon span:first-child {
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--ink)
}

.section {
  padding: 85px 6%
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 46px;
  gap: 30px
}

.section-heading>p {
  font-size: 12px;
  color: var(--muted);
  max-width: 250px
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px
}

.cover {
  height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 27px;
  overflow: hidden
}

.cover-1 {
  background: #f1e5d5
}

.cover-2 {
  background: #e9d9d6
}

.cover-3 {
  background: #e8d8c5
}

.cover img {
  height: 270px;
  width: 180px;
  object-fit: cover;
  box-shadow: 10px 13px 17px #481b2633;
  transform: rotate(-4deg);
  transition: transform .3s
}

.cover:hover img {
  transform: rotate(0deg) translateY(-5px)
}

.book-number {
  position: absolute;
  left: 17px;
  top: 15px;
  font-size: 11px
}

.cover-label {
  position: absolute;
  bottom: 14px;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase
}

.book-card .eyebrow {
  font-size: 8px;
  margin-bottom: 10px
}

.book-card h3 {
  font-size: 27px;
  min-height: 62px
}

.book-card>p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin-top: 13px;
  min-height: 58px
}

.price-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 22px 0 17px
}

.price-row strong {
  font-size: 22px;
  font-weight: 500
}

.price-row span {
  font-size: 10px;
  color: var(--muted)
}

.outline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 1px solid #b99a83;
  padding: 12px 16px;
  font-size: 11px;
  width: 100%;
  color: var(--ink)
}

.outline:hover {
  background: #f3e5cb
}

.bundle {
  margin-top: 55px;
  background: #ecdab5;
  padding: 30px;
  display: flex;
  gap: 35px;
  align-items: center
}

.bundle .eyebrow {
  font-size: 8px;
  margin-bottom: 10px
}

.bundle h3 {
  font-size: 30px
}

.bundle p:not(.eyebrow) {
  font-size: 11px;
  margin-top: 12px
}

.bundle-price {
  margin-left: auto;
  white-space: nowrap
}

.bundle-price strong {
  font-family: Georgia, serif;
  font-size: 40px;
  display: block;
  font-weight: 400
}

.bundle-price span {
  font-size: 10px
}

.pricing-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  background: #f0e4dc
}

.story p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px
}

.text-link {
  display: inline-block;
  font-size: 11px;
  border-bottom: 1px solid;
  padding-bottom: 5px
}

.opening {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  border-bottom: 1px solid var(--line)
}

.byline {
  display: block;
  margin-top: 20px;
  font-size: 12px
}

.opening blockquote {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.8;
  margin: 0
}

.opening blockquote p+p {
  margin-top: 20px
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px
}

.steps article {
  border-top: 1px solid #c2a38b;
  padding-top: 20px
}

.steps span {
  font-family: Georgia, serif;
  font-size: 30px;
  color: #a27a33
}

.steps h3 {
  font-size: 25px;
  margin: 16px 0
}

.steps p {
  font-size: 12px;
  color: var(--muted)
}

.notice {
  font-size: 12px;
  padding: 16px 20px;
  background: #f4e8d0;
  margin-top: 26px;
  border-left: 3px solid #ba934b
}

.affiliate {
  background: #eadacc;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px
}

.affiliate h2 {
  font-size: 38px
}

.affiliate p {
  font-size: 12px;
  margin-top: 20px
}

.affiliate details {
  align-self: center;
  border-top: 1px solid #ba9d87;
  border-bottom: 1px solid #ba9d87;
  padding: 20px 0
}

.affiliate summary {
  cursor: pointer;
  font-size: 13px;
  list-style: none
}

/* Hide the browser's own ▶ marker; Safari needs this separate rule */
.affiliate summary::-webkit-details-marker {
  display: none
}

.affiliate summary span {
  float: right;
  transition: transform .2s
}

/* Turn the + into × when the details are open */
.affiliate details[open] summary span {
  transform: rotate(45deg)
}

footer {
  background: #481b26;
  color: var(--paper);
  padding: 50px 6% 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px
}

footer>div:nth-child(2) {
  display: flex;
  gap: 25px;
  justify-content: end;
  align-items: start;
  font-size: 11px;
  flex-wrap: wrap
}

footer p {
  font-size: 11px;
  margin-top: 20px;
  color: #d2b4b6
}

.copyright {
  grid-column: 1/-1;
  border-top: 1px solid #80535e;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 9px !important
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #2b0b18d9;
  z-index: 50;
  padding: 30px 15px;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  backdrop-filter: blur(4px)
}

.modal {
  background: var(--paper);
  padding: 42px;
  position: relative;
  width: min(620px, 100%);
  height: max-content
}

.modal h2 {
  font-size: 38px;
  max-width: 470px
}

.modal>p:not(.eyebrow) {
  font-size: 13px;
  margin: 15px 0;
  color: var(--muted)
}

.close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 27px;
  background: none;
  border: none;
  color: inherit
}

.summary-price {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px
}

.summary-price strong {
  font-size: 32px;
  font-weight: 400
}

.summary-price span {
  font-size: 11px;
  color: var(--muted)
}

label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin: 15px 0
}

label span {
  font-weight: normal
}

input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #c5ad9e;
  background: #fffaf2;
  margin-top: 7px;
  border-radius: 0;
  color: var(--ink)
}

input:focus,
textarea:focus {
  outline: 2px solid #9b7133;
  outline-offset: 2px
}

.check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-weight: 400;
  font-size: 11px
}

.check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 2px 0
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px
}

.payment {
  padding: 18px;
  background: #ecdab5;
  margin-top: 22px
}

.payment p {
  font-size: 12px;
  margin-top: 5px
}

.gcash-number {
  font-size: 23px !important
}

.fine-print {
  font-size: 10px;
  margin-top: 15px
}

.error {
  color: #a52e23;
  font-size: 12px;
  margin-bottom: 12px
}

.order-status {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #fffaf2;
  padding: 28px;
  box-shadow: 0 12px 50px #481b2640;
  width: min(400px, calc(100% - 32px));
  z-index: 45;
  border: 1px solid #bea173
}

.order-status p {
  font-size: 12px;
  margin: 12px 0
}

.order-status .button {
  display: flex;
  margin: 10px 0
}

.order-status small {
  display: block;
  font-size: 10px;
  margin-top: 12px
}

.admin {
  max-width: 1150px;
  margin: auto;
  padding: 40px 25px
}

.admin>h1 {
  font-size: 45px;
  color: var(--ink)
}

.admin section {
  border: 1px solid var(--line);
  background: #fffaf2;
  padding: 25px;
  margin: 25px 0
}

.admin h2 {
  font-size: 28px
}

.admin pre {
  white-space: pre-wrap
}

.admin .order-row {
  border-top: 1px solid var(--line);
  padding: 18px 0
}

.admin .order-row p {
  font-size: 12px;
  word-break: break-word
}

.admin .order-row button,
.admin .order-row a {
  margin: 8px 10px 0 0
}

.info {
  max-width: 800px;
  padding: 70px 30px;
  margin: auto
}

.info h1 {
  font-size: 48px
}

.info h2 {
  font-size: 27px;
  margin: 35px 0 15px
}

.info p {
  margin: 15px 0
}

.info a {
  text-decoration: underline
}

.admin-message {
  padding: 15px;
  background: #ecdab5;
  position: sticky;
  top: 0;
  z-index: 5
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #c89e48;
  outline-offset: 4px
}

@media(max-width:850px) {
  .header nav {
    display: none
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 560px
  }

  .hero-copy {
    padding: 50px 8%
  }

  .hero-art {
    min-height: 560px
  }

  .book-stack {
    transform: scale(.75);
    width: 290px
  }

  .time {
    font-size: 110px
  }

  .book-grid {
    gap: 20px
  }

  .cover {
    height: 290px
  }

  .cover img {
    height: 225px;
    width: 150px
  }

  .book-card h3 {
    font-size: 24px
  }

  .price-row {
    align-items: start;
    flex-direction: column;
    gap: 0
  }

  .bundle {
    flex-wrap: wrap;
    gap: 20px
  }

  .story {
    gap: 40px
  }

  .affiliate {
    gap: 35px
  }

  .ribbon {
    flex-wrap: wrap;
    gap: 15px
  }

  .art-caption {
    font-size: 7px
  }

  .bundle-price {
    margin-left: 0
  }
}

@media(max-width:600px) {
  .announcement {
    font-size: 8px;
    letter-spacing: .7px
  }

  .announcement span {
    margin: 0 5px
  }

  .header {
    padding: 22px 6%
  }

  .wordmark {
    font-size: 25px
  }

  .nav-cta {
    font-size: 10px
  }

  .hero {
    grid-template-columns: 1fr
  }

  .hero-copy {
    padding: 45px 7% 20px
  }

  h1 {
    font-size: 57px
  }

  .intro {
    max-width: 340px
  }

  .hero-note {
    margin-top: 25px
  }

  .hero-art {
    min-height: 430px
  }

  .book-stack {
    margin-top: 0;
    transform: scale(.9);
    height: 380px;
    width: 360px
  }

  .time {
    font-size: 140px
  }

  .art-caption {
    bottom: 15px
  }

  .ribbon {
    justify-content: start;
    gap: 15px;
    font-size: 9px
  }

  .ribbon span:first-child {
    width: 100%;
    font-size: 16px
  }

  .section {
    padding: 55px 7%
  }

  .section-heading {
    display: block;
    margin-bottom: 30px
  }

  .section-heading>p {
    margin-top: 20px
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 45px
  }

  .cover {
    height: 390px
  }

  .cover img {
    height: 310px;
    width: 206px
  }

  .book-card h3 {
    min-height: 0;
    font-size: 30px
  }

  .book-card>p:not(.eyebrow) {
    min-height: 0
  }

  .price-row {
    flex-direction: row;
    align-items: center;
    gap: 20px
  }

  .bundle {
    padding: 25px
  }

  .bundle h3 {
    font-size: 28px
  }

  .bundle .button {
    width: 100%
  }

  .story,
  .opening,
  .affiliate {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .opening blockquote {
    font-size: 20px
  }

  .modal {
    padding: 35px 24px
  }

  .modal h2 {
    font-size: 33px
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0
  }

  footer {
    grid-template-columns: 1fr
  }

  footer>div:nth-child(2) {
    justify-content: start
  }

  .copyright {
    display: block
  }

  .copyright span {
    display: block;
    margin-top: 5px
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  border: 1px solid #bd974c55;
  border-radius: 3px
}

.header {
  background: #481b26;
  color: #f2d287;
  border-bottom-color: #a37c4455
}

.header .wordmark small {
  color: #e9d6bb
}

.nav-cta {
  border-color: #b69761
}

.hero {
  border-top: 1px solid #784a5255
}

.cream {
  background: #edc873;
  color: #481b26
}

.cream:hover {
  background: #f7db98
}

.hero-art {
  background: radial-gradient(ellipse at 40% 50%, #7c3a48 0%, #592331 52%, #481b26 85%)
}

footer .wordmark {
  color: #edc873
}

footer .brand-logo {
  width: 76px;
  height: 76px
}

.outline:hover {
  border-color: #ad813b
}

.button.dark:hover {
  background: #672d3c
}

.bundle .dark {
  border: 1px solid #481b26
}

.book-number {
  color: #69412b
}

.cover-label {
  color: #69412b
}

@media(max-width:600px) {
  .brand {
    gap: 10px
  }

  .brand-logo {
    width: 49px;
    height: 49px
  }

  .header .wordmark {
    font-size: 21px
  }

  .header .wordmark small {
    font-size: 6px;
    letter-spacing: 2.7px
  }

  .header .nav-cta {
    font-size: 9px;
    max-width: 105px
  }

  .header .nav-cta span {
    margin-left: 8px
  }

  .header {
    gap: 10px
  }

  .announcement {
    line-height: 1.8
  }
}

@media(max-width:600px) {
  h1 {
    font-size: 44px;
    letter-spacing: -2px;
    line-height: 1.1
  }

  .hero-copy {
    padding-top: 38px
  }
}

.wordmark {
  font-size: 24px;
  letter-spacing: -.8px
}

.wordmark small {
  font-size: 7px;
  letter-spacing: 2px
}

.modal h2 {
  margin-bottom: 16px
}

/* Order window: GCash details, delivery note and contact link.
   Kept here instead of inline styles in store.js, so a future
   Content-Security-Policy can block inline styles. */
.modal>p.modal-payee {
  margin-top: 24px
}

.modal>p.modal-note {
  font-size: 12px;
  margin-top: 16px
}

.modal .modal-contact {
  margin-top: 18px
}
