/* The.AlexandriaRose: site styles.
   Colors blend her YouTube banner (coral, cream, orange, mustard gold, pink)
   with her email look (dark brown text, pale gold). */

:root {
  --cream: #F6F1E7;
  --sand: #E9DBCB;
  --coral: #EC4B3B;        /* big decorative areas */
  --coral-deep: #D8402F;   /* text and buttons (reads clearly) */
  --orange: #EC9534;
  --gold: #B8A454;
  --pale-gold: #F4DC92;
  --pink: #F0A0BC;
  --ink: #2B2622;
  --muted: #6B5F4E;
  --card: #FFFCF6;

  --display: 'Oranienbaum', Georgia, 'Times New Roman', serif;
  --body: Georgia, 'Times New Roman', serif;
  --ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }

:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 3px solid var(--sand); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 28px; flex-wrap: wrap; padding-block: 18px;
}
.logo { font-family: var(--display); font-size: 1.7rem; text-decoration: none; line-height: 1; }
.nav { display: flex; gap: 8px 26px; flex-wrap: wrap; font: 700 15px/1 var(--ui); letter-spacing: .02em; }
.nav a { text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--orange); }

/* ---------- the "browser window" card from her banner ---------- */
.window {
  background: var(--card);
  border: 3px solid var(--gold);
  box-shadow: 10px 10px 0 var(--pink);
}
.window__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 3px solid var(--gold);
  font: 700 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--coral-deep);
}
.window__bar i { width: 13px; height: 13px; border-radius: 50%; background: var(--gold); flex: none; }
.window__bar span { margin-left: auto; margin-right: auto; padding-right: 66px; text-align: center; }
.window__body { padding: clamp(22px, 4vw, 36px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 700 16px/1 var(--ui); letter-spacing: .02em;
  padding: 17px 30px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--coral-deep); color: #fff; }
.btn--primary:hover { background: #BF3524; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */
.hero {
  background: var(--sand) url(images/stripes.svg) center / cover no-repeat;
  padding-block: clamp(48px, 9vw, 112px);
}
.hero .window { max-width: 820px; margin-inline: auto; }
.hero .window__body { padding: clamp(28px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 4.8rem); line-height: 1.02; margin-bottom: .35em; }
.mark { color: var(--coral-deep); text-decoration: underline wavy var(--orange) 4px; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.lead { font-size: clamp(1.1rem, 2.3vw, 1.3rem); color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.eyebrow { font: 700 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 14px; }
.section h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .5em; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 44px 40px; }
.card { display: flex; flex-direction: column; }
.card .window__body { display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.75rem; margin-bottom: .4em; }
.card p { color: var(--muted); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card__photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; border-bottom: 3px solid var(--gold); }

/* about */
.about { background: var(--sand); }
.about__grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--gold); box-shadow: 10px 10px 0 var(--pink); }
.about p { font-size: 1.12rem; }

.cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
.cards--four .window__body { padding: 24px; }
.cards--four .card h3 { font-size: 1.55rem; }
.cards--four .window__bar span { flex: 1; margin: 0; padding-right: 0; white-space: nowrap; }
.cards--four .card .btn { align-self: stretch; text-align: center; padding: 16px 12px; font-size: 15px; }
@media (max-width: 1060px) { .cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--four { grid-template-columns: 1fr; } }
.cards--posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.more-note { text-align: center; color: var(--muted); margin: 48px 0 0; }
.more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.nav a[aria-current="page"] { border-bottom-color: var(--coral-deep); }
.card__photo--book { aspect-ratio: 4 / 3.2; object-position: center 55%; }

/* free guide band: book photo beside the signup */
.band .window { max-width: 980px; }
.guide { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(28px, 5vw, 52px); align-items: center; text-align: left; }
.guide__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--gold); box-shadow: 8px 8px 0 var(--pink); }
.guide__text h2 { text-align: left; }
.band .guide__text p { margin-inline: 0; }
.guide__text .fine { margin-top: 0; }
#signup#signup .ml-form-embedContainer .ml-form-recaptcha { justify-content: flex-start; }
#signup#signup .ml-form-embedContainer .ml-form-embedSubmit,
#signup#signup .ml-form-embedContainer .ml-form-successContent { text-align: left; }
@media (max-width: 760px) {
  .guide { grid-template-columns: 1fr; text-align: center; }
  .guide__photo { max-width: 260px; margin-inline: auto; }
  .guide__text h2 { text-align: center; }
  .band .guide__text p { margin-inline: auto; }
  #signup#signup .ml-form-embedContainer .ml-form-recaptcha { justify-content: center; }
  #signup#signup .ml-form-embedContainer .ml-form-embedSubmit,
  #signup#signup .ml-form-embedContainer .ml-form-successContent { text-align: center; }
}

/* free guide band */
.band { background: var(--coral) url(images/stripes.svg) center / cover no-repeat; }
.band .window { margin-inline: auto; }
.band .window__body { padding: clamp(28px, 5vw, 52px); }
.band h2 { margin-bottom: .35em; }
.band p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.signup-embed { margin: 1.4em auto 1em; max-width: 560px; text-align: left; min-height: 70px; }
/* MailerLite's form brings its own styles, so these use !important to restyle it in her look.
   The form's own heading is hidden because the page already has one. */
#signup#signup .ml-form-embedContainer .ml-form-embedWrapper { background: transparent !important; border: 0 !important; box-shadow: none !important; max-width: none !important; }
#signup#signup .ml-form-embedContainer .ml-form-embedBody,
#signup#signup .ml-form-embedContainer .ml-form-successBody { padding: 0 !important; }
#signup#signup .ml-form-embedContainer .ml-form-embedContent { display: none !important; }
#signup#signup .ml-form-embedContainer input.form-control {
  width: 100% !important; height: auto !important; background: #fff !important; color: var(--ink) !important;
  border: 2px solid var(--ink) !important; border-radius: 999px !important; padding: 15px 22px !important;
  font: 17px/1.2 var(--body) !important; box-shadow: none !important;
}
#signup#signup .ml-form-embedContainer .ml-form-recaptcha { float: none !important; display: flex; justify-content: center; margin: 14px 0 !important; }
#signup#signup .ml-form-embedContainer .ml-form-embedSubmit { margin: 0 !important; text-align: center; }
#signup#signup .ml-form-embedContainer .ml-form-embedSubmit button.primary {
  background: var(--coral-deep) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  padding: 17px 34px !important; font: 700 16px/1 var(--ui) !important; letter-spacing: .02em; cursor: pointer; width: auto !important; min-width: 200px;
}
#signup#signup .ml-form-embedContainer .ml-form-embedSubmit button.primary:hover { background: #BF3524 !important; }
#signup#signup .ml-form-embedContainer .ml-form-successContent { text-align: center; }
#signup#signup .ml-form-embedContainer .ml-form-successContent h4 { font: 400 1.8rem/1.15 var(--display) !important; color: var(--ink) !important; margin: 0 0 .4em !important; }
#signup#signup .ml-form-embedContainer .ml-form-successContent p { font: 18px/1.6 var(--body) !important; color: var(--muted) !important; margin: 0 !important; }
@media (max-width: 400px) {
  #signup#signup .ml-form-embedContainer .g-recaptcha { transform: scale(.82); transform-origin: center top; }
  #signup#signup .ml-form-embedContainer .ml-form-recaptcha { height: 66px; }
}
.fine { font-size: .9rem; color: var(--muted); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* follow */
.follow { text-align: center; }
.follow .btn-row { justify-content: center; }
.follow p { color: var(--muted); }

/* footer */
.stripe-band { height: 72px; background: var(--sand) url(images/stripes.svg) center bottom / cover no-repeat; }
.site-footer { background: var(--ink); color: var(--cream); text-align: center; padding-block: 40px 44px; font: 15px/1.7 var(--ui); }
.site-footer .logo { color: var(--pale-gold); display: inline-block; margin-bottom: 10px; }
.site-footer p { margin: 0 0 .4em; color: #D9CFBC; }
.site-footer a { color: var(--pale-gold); }

/* ---------- blog post ---------- */
.post-hero { background: var(--sand) url(images/stripes.svg) center / cover no-repeat; padding-block: clamp(36px, 6vw, 72px); }
.post-hero .window { max-width: 820px; margin-inline: auto; }
.post-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
.post { padding-block: clamp(40px, 6vw, 72px); }
.post h2 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); margin: 1.6em 0 .6em; }
.post__photo { width: min(100%, 420px); margin: 0 auto 2em; border: 3px solid var(--gold); box-shadow: 10px 10px 0 var(--pink); }
.post ul, .post ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.post li { margin-bottom: .6em; padding-left: .3em; }
.callout { background: var(--sand); border-left: 6px solid var(--gold); padding: 18px 24px; margin: 2em 0; }
.callout p:last-child { margin-bottom: 0; }
.back { font: 700 15px/1 var(--ui); display: inline-block; margin-bottom: 22px; text-decoration: none; }
.back:hover { text-decoration: underline; }
.disclosure { font-size: .92rem; color: var(--muted); margin-top: 2.4em; }

@media (max-width: 720px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
  .window { box-shadow: 7px 7px 0 var(--pink); }
  .window__bar span { padding-right: 0; }
  .btn { padding: 16px 24px; }
  .nav { gap: 6px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
