/* Poetry Emotion: static site styles */

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --rose: #b05574;
  --rose-dark: #94415f;
  --rose-tint: #f7ecf0;
  --paper: #f3efe8;
  --card: #ffffff;
  --ink: #3a3436;
  --muted: #6f6669;
  --line: #e8e1dc;
  --bronze: #965a38;
  --silver: #8d8d8d;
  --gold: #c8922c;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1100px;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--rose-dark); text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
::selection { background: var(--rose); color: #fff; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 10; font-family: var(--sans); }
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header .wrap { padding: 0 16px; }
.header-bar {
  background: var(--rose);
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  position: relative;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: #fff; text-decoration: none; font-family: var(--sans); font-size: 1.7rem; line-height: 1; letter-spacing: -0.01em; }
.logo:hover { color: #fff; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 700; }
.logo span { font-weight: 400; }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.6); color: #fff; border-radius: 4px; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.45rem 0.8rem; cursor: pointer; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.site-nav a { color: #fff; text-decoration: none; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.85); }

/* Main card */
.site-main { margin: 1.5rem auto 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(60,40,45,0.08), 0 8px 24px rgba(60,40,45,0.05); padding: clamp(1.5rem, 4vw, 3rem); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin: 0 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
p { margin: 0 0 1.1em; }

.eyebrow { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.page-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.75rem; }
.page-head p { color: var(--muted); margin: 0.4rem 0 0; }

/* Home */
.intro { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.intro h1 { margin-bottom: 1.25rem; font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 3vw, 1.9rem); color: #5a5254; }
.intro p { color: #555; }

.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.box { background: #fbf9f6; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; display: flex; flex-direction: column; }
.box h2 { color: var(--rose-dark); font-size: 1.25rem; margin: 0 0 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.box p { font-size: 1rem; }
.box .more { margin-top: auto; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; }
.theme-list { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.9; }
.theme-list a { color: var(--ink); text-decoration: none; }
.theme-list a:hover { color: var(--rose-dark); text-decoration: underline; }
.price-big { font-size: 1.05rem; }

.flourish { display: block; margin: 2.5rem auto 0; width: 120px; height: 1px; background: linear-gradient(to right, transparent, var(--rose), transparent); }

/* Poem */
.poem-meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 1.75rem; }
.poem-meta a { text-decoration: none; }
.poem-meta a:hover { text-decoration: underline; }
.poem-body { font-size: 1.0625rem; }
.poem-body p { margin-bottom: 1.25em; }
.poem-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.9rem; }
.poem-nav a { text-decoration: none; max-width: 48%; }
.poem-nav a:hover { text-decoration: underline; }
.poem-nav .next { margin-left: auto; text-align: right; }
.poem-nav small { display: block; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Archive */
.poem-list { list-style: none; margin: 0; padding: 0; }
.poem-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.poem-list li:first-child { padding-top: 0; }
.poem-list h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.poem-list h2 a { color: var(--ink); text-decoration: none; }
.poem-list h2 a:hover { color: var(--rose-dark); text-decoration: underline; }
.poem-list .date { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: 0 0 0.5rem; }
.poem-list .excerpt { margin: 0; color: #555; font-size: 1rem; }

/* Sidebar */
.sidebar h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 0.75rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--line); }
.sidebar ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.sidebar li a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1rem; }
.sidebar li a:hover, .sidebar li a[aria-current="page"] { color: var(--rose-dark); }
.sidebar li a span { color: var(--muted); font-family: var(--sans); font-size: 0.8rem; }
.sidebar .cta { background: var(--rose-tint); border-radius: var(--radius); padding: 1.25rem; font-size: 0.98rem; }
.sidebar .cta p:last-child { margin: 0; }

/* Prices */
.lead { font-style: italic; font-size: 1.1rem; color: #5a5254; text-align: center; max-width: 46rem; margin: 0 auto 1.5rem; }
.centre { text-align: center; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 1rem; }
.tier { border: 1px solid var(--line); border-top: 5px solid var(--t, var(--rose)); border-radius: var(--radius); padding: 1.5rem; text-align: center; display: flex; flex-direction: column; }
.tier.bronze { --t: var(--bronze); }
.tier.silver { --t: var(--silver); }
.tier.gold { --t: var(--gold); }
.tier h2 { margin: 0 0 0.75rem; font-size: 1.4rem; }
.tier p { font-size: 1rem; }
.tier .lines { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); margin: auto 0 0.25rem; padding-top: 1rem; }
.tier .price { font-size: 1.7rem; font-weight: 600; margin: 0 0 1.25rem; }

.button { display: inline-block; background: var(--rose); color: #fff; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; text-decoration: none; padding: 0.65rem 1.3rem; border-radius: 4px; }
.button:hover { background: var(--rose-dark); color: #fff; }

/* FAQ */
.faq h2 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }

/* About / contact */
.contact-line { font-family: var(--sans); font-size: 1rem; background: var(--rose-tint); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.contact-line a { font-weight: 600; }
.portrait { float: right; width: 300px; max-width: 45%; margin: 0.3rem 0 1rem 1.75rem; border-radius: var(--radius); }

/* Footer */
.site-footer { text-align: center; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); padding: 2rem 16px 2.5rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0.25rem 0; }

/* Responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { border-top: 1px solid var(--line); padding-top: 2rem; }
}

@media (max-width: 760px) {
  .header-bar { flex-wrap: wrap; padding: 0.8rem 1rem; }
  .logo { font-size: 1.45rem; }
  .logo svg { width: 28px; height: 28px; }
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 0.25rem; }
  .site-nav a { display: block; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .site-nav li:last-child a { border-bottom: 0; }
  .boxes, .tiers { grid-template-columns: 1fr; }
  .portrait { float: none; display: block; width: 100%; max-width: 360px; margin: 0 0 1.5rem; }
  .poem-nav { flex-direction: column; }
  .poem-nav a { max-width: none; }
  .poem-nav .next { text-align: left; margin-left: 0; }
}

/* No JS: keep the menu visible on small screens */
.no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }
