/* TrendLife — December issue promo page.
   Layout: a magazine cover as the hero (masthead + cover lines on emerald),
   then copy dates, the two offers, house rules, and the two forms on white paper.
   Deliberate single look: same palette on every host. */
.tlx {
  --ink: #16181b;
  --ink-soft: #4a4f55;
  --paper: #ffffff;
  --stone: #f1f2ef;
  --rule: #d9dbd6;
  --emerald: #0e4a3c;
  --emerald-deep: #0a3329;
  --mint: #cfe3da;
  --error: #9d2b25;
  --ok: #0e4a3c;
  --display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color-scheme: light;
}
.tlx *, .tlx *::before, .tlx *::after { box-sizing: border-box; }
.tlx .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.tlx h1, .tlx h2, .tlx h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; color: inherit; }
.tlx p { margin: 0; }
.tlx a { color: inherit; }
.tlx .eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }

/* ---------- Cover ---------- */
.tlx .cover { background: var(--emerald); color: var(--paper); }
.tlx .cover .wrap { padding-block: 28px 64px; display: grid; gap: 48px; }
.tlx .cover-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 12px; }
.tlx .masthead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(64px, 15vw, 196px);
  line-height: .86;
  letter-spacing: -.035em;
  margin: 8px 0 0;
}
.tlx .masthead i { font-style: italic; font-weight: 400; }
.tlx .cover-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.tlx .cover-lead { font-family: var(--display); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; }
.tlx .cover-lead em { font-style: italic; }
.tlx .cover-copy { display: grid; gap: 20px; max-width: 46ch; }
.tlx .cover-copy p { color: var(--mint); }
.tlx .cover-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.tlx .cover-image { margin: 8px 0 0; }
.tlx .cover-image img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 40%; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (max-width: 620px) { .tlx .cover-image img { aspect-ratio: 4 / 3; } }

.tlx .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tlx .btn-light { background: var(--paper); color: var(--emerald); border-color: var(--paper); }
.tlx .btn-light:hover { background: var(--mint); border-color: var(--mint); }
.tlx .btn-ghost { background: transparent; color: var(--paper); }
.tlx .btn-ghost:hover { background: rgba(255,255,255,.12); }
.tlx .btn-dark { background: var(--emerald); color: var(--paper); border-color: var(--emerald); width: 100%; }
.tlx .btn-dark:hover { background: var(--emerald-deep); }
.tlx .btn:focus-visible, .tlx input:focus-visible, .tlx select:focus-visible, .tlx textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tlx .cover .btn:focus-visible { outline-color: var(--paper); }

/* ---------- Copy dates ---------- */
.tlx .dates { border-bottom: 1px solid var(--rule); }
.tlx .dates .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.tlx .date { padding-block: 28px; padding-right: 24px; display: grid; gap: 6px; align-content: start; }
.tlx .date + .date { border-left: 1px solid var(--rule); padding-left: 24px; }
.tlx .date .eyebrow { color: var(--ink-soft); }
.tlx .date strong { font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tlx .date span { color: var(--ink-soft); font-size: 15px; }

/* ---------- Sections ---------- */
.tlx section.block .wrap { padding-block: 72px; }
.tlx .section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 62ch; }
.tlx .section-head h2 { font-size: clamp(34px, 4.6vw, 52px); }
.tlx .section-head .eyebrow { color: var(--emerald); }

/* Offers */
.tlx .offers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink); }
.tlx .offer { padding: 36px 32px; display: grid; gap: 16px; align-content: start; }
.tlx .offer + .offer { border-left: 1px solid var(--ink); }
.tlx .offer h3 { font-size: 34px; }
.tlx .offer .meta { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); font-weight: 500; }
.tlx .offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tlx .offer li { padding-left: 18px; position: relative; color: var(--ink-soft); }
.tlx .offer li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--ink); }
.tlx .offer .link { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; text-underline-offset: 6px; justify-self: start; }

/* House rules */
.tlx .rules-band { background: var(--stone); }
.tlx .rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.tlx .rule { padding: 26px 28px 30px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.tlx .rule:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--rule); }
.tlx .rule h3 { font-size: 26px; }
.tlx .rule p { color: var(--ink-soft); max-width: 52ch; }
.tlx .rule.is-key h3 { color: var(--emerald); }
.tlx .spec { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--ink-soft); }
.tlx .spec b { color: var(--ink); font-weight: 500; }

/* Issue reader */
.tlx .issue-band { background: var(--stone); color: var(--ink); }
.tlx .issue-band .section-head p { color: var(--ink-soft); }
.tlx .issue-band .wrap { display: grid; justify-items: center; gap: 0; }
.tlx .issue-band .section-head { justify-self: start; }
.tlx .issue-band .tlfb { width: 100%; }
.tlx .tlx-reader { width: 100%; display: grid; gap: 18px; justify-items: center; outline: none; }
.tlx .tlx-reader:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
.tlx .reader-stage { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 980px; box-shadow: 0 18px 44px rgba(22,24,27,.22); touch-action: pan-y; }
.tlx .reader-stage.is-single { grid-template-columns: 1fr; max-width: 490px; }
.tlx .reader-page { aspect-ratio: 1200 / 1703; max-width: 100%; background: #2a2d31; overflow: hidden; position: relative; }
.tlx .reader-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlx .reader-stage:not(.is-single) .reader-page:first-child::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 28px; background: linear-gradient(to left, rgba(0,0,0,.22), transparent); }
.tlx .reader-page.is-sample { display: grid; place-items: center; background: var(--stone); color: var(--ink-soft); font-family: var(--display); font-size: 22px; border: 1px solid var(--rule); }
.tlx .reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 980px; }
.tlx .reader-count { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; text-align: center; }
.tlx .reader-btn { min-height: 44px; padding: 0 18px; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; }
.tlx .reader-btn:hover:not(:disabled) { background: var(--paper); }
.tlx .reader-btn:disabled { opacity: .35; cursor: default; }
.tlx .reader-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tlx .reader-link { margin-top: 28px; color: var(--emerald); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; text-underline-offset: 6px; }

/* ---------- Forms ---------- */
.tlx .forms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tlx .form-card { border-top: 4px solid var(--emerald); background: var(--paper); padding-top: 24px; display: grid; gap: 22px; scroll-margin-top: 24px; min-width: 0; }
.tlx .form-card h3 { font-size: 36px; }
.tlx .form-card .deadline { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); font-weight: 500; }
.tlx form { display: grid; gap: 16px; margin: 0; }
.tlx .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tlx .field { display: grid; gap: 6px; min-width: 0; }
.tlx label, .tlx legend { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--ink); }
.tlx .opt { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-weight: 400; }
.tlx input[type=text], .tlx input[type=email], .tlx input[type=tel], .tlx input[type=url], .tlx select, .tlx textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-bottom-color: var(--ink); border-radius: 0; padding: 12px 12px; min-height: 48px;
}
.tlx textarea { min-height: 120px; resize: vertical; }
.tlx input[type=file] { font: inherit; font-size: 15px; width: 100%; padding: 14px; border: 1px dashed var(--ink-soft); background: var(--stone); }
.tlx .hint { font-size: 14px; color: var(--ink-soft); }
.tlx fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.tlx .check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); cursor: pointer; }
.tlx .check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--emerald); }
.tlx .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tlx .closed-note { display: none; padding: 18px 20px; background: var(--stone); border-left: 3px solid var(--ink); }
.tlx .form-card.is-closed form { display: none; }
.tlx .form-card.is-closed .closed-note { display: block; }

.tlx .notice { padding: 18px 20px; margin-bottom: 28px; border-left: 3px solid var(--ok); background: var(--mint); color: var(--ink); }
.tlx .notice.is-error { border-left-color: var(--error); background: #f6e3e1; }
.tlx .notice strong { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; margin-bottom: 4px; }

/* Footer */
.tlx .foot { background: var(--paper); color: var(--ink); border-top: 1px solid var(--rule); }
.tlx .foot .wrap { padding-block: 40px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.tlx .foot .mark { display: block; width: 200px; max-width: 100%; height: auto; }
.tlx .foot p { color: var(--ink-soft); font-size: 15px; max-width: 46ch; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tlx .cover-lead { animation: tlx-rise .9s .12s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes tlx-rise { from { transform: translateY(18px); } to { transform: none; } }
}

/* ---------- Narrow ---------- */
@media (max-width: 860px) {
  .tlx .cover-grid, .tlx .offers, .tlx .forms, .tlx .rules { grid-template-columns: 1fr; }
  .tlx .offer + .offer { border-left: 0; border-top: 1px solid var(--ink); }
  .tlx .rule, .tlx .rule:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .tlx .forms { gap: 56px; }
}
@media (max-width: 620px) {
  .tlx .dates .wrap { grid-template-columns: 1fr; }
  .tlx .date, .tlx .date + .date { border-left: 0; padding-left: 0; padding-block: 18px; }
  .tlx .date + .date { border-top: 1px solid var(--rule); }
  .tlx .row { grid-template-columns: 1fr; }
  .tlx .offer { padding: 28px 20px; }
  .tlx section.block .wrap { padding-block: 52px; }
}

/* ---------- Theme integration (TrendLife WordPress theme) ---------- */
/* Run full width inside the theme's article column, like an alignfull block. */
.tl-prose > .tlx { max-width: none; margin-left: calc(var(--gutter, 0px) * -1); margin-right: calc(var(--gutter, 0px) * -1); }
/* The magazine cover is the page heading, so hide the theme's page title. */
body:has(.tlx) .tl-single__head { display: none; }
/* Undo article-prose spacing and link colours inside the page. */
.tlx.tlx :is(h1, h2, h3, p, ul, li, figure) { margin: 0; }
.tlx.tlx a { color: inherit; }
.tlx.tlx .offer .link { color: var(--emerald); text-decoration: underline; text-decoration-thickness: 1px; }
.tlx.tlx .reader-link { color: var(--emerald); }
.tlx.tlx .btn { text-decoration: none; }
.tlx.tlx .btn-light { color: var(--emerald); }
.tlx.tlx .btn-ghost { color: var(--paper); }
