/* Tony Abruzzo — homepage concept by Astra Productions
   Palette and type are taken from the cover of
   Short Stories of Life, Love, Choices and Consequences:
   sky, sea, sand, the purple umbrella, teak chairs,
   condensed white title caps and the gold script "and". */

@font-face { font-family: "Oswald"; src: url("assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url("assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #faf5ea;        /* page */
  --sand-1: #f3e8d2;       /* light sand */
  --sand-2: #ead7ae;       /* beach */
  --sand-3: #dfc38e;       /* wet sand */
  --sky-1: #d3e5f3;        /* sky at the top of the cover */
  --sky-2: #e9f1f6;
  --sea: #2b7aa6;
  --sea-light: #8fc0db;
  --sea-deep: #1b5a80;     /* focus + links */
  --umbrella: #4e3888;     /* the purple umbrella */
  --night-1: #241a44;      /* The Wing Man's night sky */
  --night-2: #3a2a6a;
  --gold: #805c0e;         /* the script "and" (antique gold, 4.7:1 or better) */
  --gold-deep: #805c0e;
  --teak: #7a4520;         /* the wooden chairs: labels */
  --ink: #1d2731;
  --ink-2: #444e58;
  --rule: rgba(29, 39, 49, 0.16);

  --display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --meta: "Jost", "Century Gothic", "Futura", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;        /* 19px: easy reading */
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

a { color: var(--sea-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--umbrella); }
:focus-visible { outline: 3px solid var(--sea-deep); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
  font-family: var(--meta); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }
.skip:focus-visible { outline-color: #f6efe0; }

.eyebrow {
  font-family: var(--meta); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--teak);
  margin-bottom: 1rem;
}

/* ---------- Concept banner ---------- */
.concept-banner p { margin: 0; }
.concept-banner {
  margin: 0; padding: 8px var(--gutter);
  background: var(--ink); color: #f3ecdc;
  font-family: var(--meta); font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
}

/* ---------- Header ---------- */
.site-header { background: var(--sky-1); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-block: 22px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--meta); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  margin-right: -0.32em; /* optical: trailing tracking */
}
.wordmark:hover { color: var(--umbrella); }
.nav { display: flex; gap: 6px 30px; flex-wrap: wrap; }
.nav a {
  font-family: var(--meta); font-weight: 500; font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--umbrella); border-bottom-color: var(--umbrella); }

/* ---------- Hero: sky, horizon, sand ---------- */
.hero {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, #f1ede1 100%);
  padding-top: clamp(24px, 4vw, 56px);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(32px, 6vw, 88px); align-items: end;
}
.hero-copy { padding-bottom: clamp(140px, 13.5vw, 176px); }
.horizon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(120px, 13vw, 168px);
  background:
    linear-gradient(180deg, var(--sea) 0, var(--sea) 3px, var(--sea-light) 3px, var(--sea-light) 9px, transparent 9px),
    linear-gradient(180deg, var(--sand-2) 0%, var(--sand-3) 100%);
}

.title {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.5rem, 4.2vw + 0.9rem, 5rem);
  line-height: 1; letter-spacing: 0.005em; color: var(--ink);
  margin-bottom: 1.1rem; width: fit-content; max-width: 100%;
}
.title-line { display: block; }
.title-line-small { font-size: 0.6em; line-height: 1.15; letter-spacing: 0.012em; margin-bottom: 0.04em; }
/* the cover's gold script "and", tucked between CHOICES and CONSEQUENCES */
.title-and {
  display: block; position: relative; z-index: 1;
  height: 0.4em; padding-left: 37%;
  text-transform: none; letter-spacing: 0;
}
.title-and .and {
  position: relative; top: -0.6em;
  font-family: var(--script); font-size: 0.8em; line-height: 1;
  color: var(--gold); display: inline-block; padding-right: 0.14em;
}
.byline {
  font-family: var(--meta); font-weight: 600; font-size: 1.0625rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 31em; margin-bottom: 1.8rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 14px 28px; border-radius: 6px;
  background: var(--umbrella); color: #fff;
  font-family: var(--meta); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  box-shadow: 0 10px 22px -12px rgba(46, 30, 90, 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: #3d2b70; color: #fff; transform: translateY(-1px); }
.text-link {
  font-family: var(--meta); font-weight: 600; font-size: 1.0625rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px;
  padding-block: 8px;
}
.text-link:hover { color: var(--umbrella); text-decoration-color: var(--umbrella); }

.hero-cover { justify-self: center; align-self: end; width: 100%; max-width: 340px; margin-bottom: clamp(40px, 4.5vw, 60px); }
.hero-cover img {
  width: 100%; border-radius: 2px;
  box-shadow: 0 2px 4px rgba(40, 28, 8, 0.18), 0 34px 48px -22px rgba(60, 40, 10, 0.55);
}

/* the script "and" draws in like ink, once */
.js .and[data-draw] { clip-path: inset(-0.4em 100% -0.4em 0); }
.js .and[data-draw].is-drawn { clip-path: inset(-0.4em -0.2em -0.4em 0); transition: clip-path 1.15s cubic-bezier(0.55, 0.05, 0.25, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .and[data-draw], .js .and[data-draw].is-drawn { clip-path: none; transition: none; }
}

/* ---------- The book ---------- */
.book { padding-block: var(--section); background: var(--paper); }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.book-text { padding-top: 0.5rem; }
.book-text p:first-child { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.pull { margin: 0; }
.pull p {
  font-style: italic; font-size: clamp(1.65rem, 1.6vw + 1.05rem, 2.55rem);
  line-height: 1.28; color: var(--ink); margin-bottom: 1.1rem; text-wrap: balance;
  text-indent: -0.42em;
}
p, dd, figcaption, .coda-kicker { text-wrap: pretty; }
.pull footer, .reader figcaption {
  font-family: var(--meta); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teak);
}
.book-text p { color: var(--ink-2); }
.details {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px;
  margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
}
.details dt, .record dt {
  font-family: var(--meta); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teak); margin-bottom: 2px;
}
.details dd { font-size: 1.0625rem; line-height: 1.45; color: var(--ink); }

/* ---------- Eleven stories ---------- */
.stories {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--sand-1) 0%, #f0e2c6 100%);
}
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2, .wingman h2, .coda h2 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.3rem, 3vw + 1.2rem, 4rem); line-height: 1.02; letter-spacing: 0.005em;
  margin-bottom: 1rem;
}
.section-intro { color: var(--ink-2); font-size: 1.25rem; line-height: 1.55; margin: 0; }

.contents { border-bottom: 1px solid var(--rule); }
.thread {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 40px;
  border-top: 1.5px solid rgba(29, 39, 49, 0.55);
  padding-top: 6px;
}
.thread + .thread { margin-top: 10px; }
.thread-label {
  font-family: var(--meta); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--teak);
  padding-top: 30px;
}
.story { padding: 26px 0 28px; }
.story + .story { border-top: 1px solid var(--rule); }
.story-title, .group-titles {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); line-height: 1.1; letter-spacing: 0.01em;
  color: var(--ink); margin: 0 0 0.45rem;
}
.story-hinge { margin: 0; color: var(--ink-2); font-size: 1.1875rem; line-height: 1.6; max-width: 40em; }
.story-hinge .and {
  font-family: var(--script); color: var(--gold-deep);
  font-size: 1.6em; line-height: 0; display: inline-block;
  margin: 0 0.06em; transform: translateY(0.08em);
}
.group-line { font-style: italic; color: var(--ink-2); margin: 0 0 0.7rem; }
.group-titles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; margin: 0; font-size: clamp(1.35rem, 0.6vw + 1.05rem, 1.7rem); }
.group-titles li { padding-left: 18px; position: relative; }
.group-titles li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--umbrella);
}
.and-inline {
  font-family: var(--script); text-transform: none; letter-spacing: 0;
  color: var(--gold-deep); font-size: 1.12em; line-height: 0.5; margin-right: 0.1em;
}

/* ---------- Author ---------- */
.author { padding-block: var(--section); background: var(--paper); }
.author-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.author-head h2 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.6rem, 4.4vw + 0.8rem, 5rem); line-height: 1; letter-spacing: 0.005em;
}
.author-head { position: sticky; top: 32px; }
.author-head h2 span { display: block; }
.author-head h2 span:last-child { color: var(--umbrella); }
.author-text p { color: var(--ink-2); }
.author-text p:first-child { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.record { margin-top: 2.2rem; border-top: 1px solid var(--rule); }
.record > div {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 24px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.record dt { margin: 0; padding-top: 4px; }
.record dd { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }

/* ---------- The Wing Man ---------- */
.wingman {
  padding-block: var(--section);
  background: radial-gradient(120% 90% at 85% 0%, var(--night-2) 0%, var(--night-1) 62%, #18122e 100%);
  color: #ece6f6;
}
.wingman-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.wingman-cover { justify-self: center; width: 100%; max-width: 300px; }
.wingman-cover img { width: 100%; border-radius: 2px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.wingman .eyebrow { color: #d4c6f2; }
.wingman h2 { color: #fff; }
.wingman-text p { color: #e3dcf0; max-width: 34em; }
.wingman-meta { font-family: var(--meta); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.06em; color: #cfc3ea !important; margin: 1.4rem 0 1.6rem; }
.button-light { background: #f6efe0; color: var(--night-1); box-shadow: none; }
.button-light:hover { background: #fff; color: var(--night-1); }
.wingman :focus-visible { outline-color: #f6efe0; }

/* ---------- Coda ---------- */
.coda { text-align: center; background: var(--paper); padding-top: var(--section); }
/* the cover's shoreline: the reader card sits on the horizon */
.coda-beach {
  padding-bottom: calc(var(--section) + 20px);
  background:
    linear-gradient(180deg, var(--sea) 0, var(--sea) 3px, var(--sea-light) 3px, var(--sea-light) 9px, transparent 9px),
    linear-gradient(180deg, var(--sand-2) 0%, var(--sand-3) 100%);
}
.coda-inner { max-width: 760px; }
.coda-kicker {
  font-family: var(--meta); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--teak); margin-bottom: 0.9rem;
}
.coda h2 { margin-bottom: 0; padding-bottom: clamp(76px, 8vw, 104px); }
.coda-kicker, .reader figcaption { text-wrap: balance; }
.reader {
  position: relative; margin-top: -46px;
  display: inline-block; background: var(--paper); padding: 26px 36px 24px;
  border-radius: 6px; box-shadow: 0 18px 40px -26px rgba(60, 40, 10, 0.6);
}
.reader blockquote { margin: 0; }
.coda-action { margin: clamp(36px, 5vw, 56px) 0 0; }
.reader blockquote p { font-style: italic; font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); line-height: 1.35; margin: 0 0 0.6rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e7dfcf; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; padding-block: 28px; }
.footer-mark { margin: 0; font-family: var(--meta); font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.9375rem; }
.credits { margin: 0; font-family: var(--meta); font-weight: 500; font-size: 0.875rem; color: #cfc6b4; }

/* ---------- 1024 and below ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
  .hero-cover { max-width: 320px; }
  .thread { grid-template-columns: 170px minmax(0, 1fr); gap: 0 28px; }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 860px) {
  .book-grid, .author-grid { grid-template-columns: 1fr; }
  .author-head { position: static; }
  .wingman-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* ---------- Phones ---------- */
@media (max-width: 699px) {
  body { font-size: 1.125rem; }
  .header-inner { padding-block: 14px 12px; gap: 6px 20px; }
  .wordmark { font-size: 0.9375rem; letter-spacing: 0.28em; }
  .nav { gap: 2px 22px; }
  .nav a { font-size: 0.9375rem; padding: 6px 0; }

  /* phones: the real cover sits beside the title, like a book on a shelf card */
  .hero { padding-top: 20px; }
  .hero-grid {
    --m-cover: clamp(96px, 29vw, 120px);
    grid-template-columns: var(--m-cover) minmax(0, 1fr);
    grid-template-areas: "eyebrow eyebrow" "cover title" "cover byline" "lede lede" "actions actions";
    column-gap: 16px; row-gap: 0; align-items: end;
  }
  .hero-copy { display: contents; }
  .hero .eyebrow { grid-area: eyebrow; }
  .hero-cover { grid-area: cover; max-width: none; margin: 0; align-self: start; }
  .hero-cover img { box-shadow: 0 2px 4px rgba(40, 28, 8, 0.18), 0 14px 22px -12px rgba(60, 40, 10, 0.5); }
  .horizon { height: 74px; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.16em; margin-bottom: 0.7rem; }
  .title {
    grid-area: title; align-self: end; margin-bottom: 0.35rem;
    font-size: min(calc((100vw - 2 * var(--gutter) - var(--m-cover) - 16px) / 6.2), 2.75rem);
  }
  .byline { grid-area: byline; align-self: start; font-size: 0.875rem; letter-spacing: 0.22em; margin-bottom: 0; }
  .lede { grid-area: lede; font-size: 1.0625rem; line-height: 1.5; margin: 1.1rem 0 1.1rem; }
  .actions { grid-area: actions; padding-bottom: 84px; }
  .actions { gap: 10px 22px; }
  .button { width: 100%; min-height: 52px; padding: 12px 20px; }

  .details { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .pull p { text-indent: 0; }
  .book-text p:first-child { font-size: 1.1875rem; }
  .coda-action .button { width: auto; padding-inline: 32px; }
  .thread { grid-template-columns: 1fr; padding-top: 0; }
  .thread-label { padding-top: 18px; }
  .story { padding: 14px 0 20px; }
  .thread-label + .story-list .story:first-child { padding-top: 8px; }
  .story-hinge { font-size: 1.0625rem; }
  .group-titles { grid-template-columns: 1fr; gap: 6px; }

  .record > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }

  .wingman-grid { grid-template-columns: 1fr; gap: 32px; }
  .wingman-cover { max-width: 220px; }
  .wingman h2, .wingman .eyebrow { text-align: left; }

  .reader { padding: 22px 22px 20px; }
}

@media (max-width: 420px) {
  .concept-banner { font-size: 0.6875rem; letter-spacing: 0.1em; }
}

@media (max-width: 359px) {
  .wordmark { letter-spacing: 0.22em; }
  .nav { gap: 2px 16px; }
  .byline { font-size: 0.8125rem; letter-spacing: 0.2em; }
  .details { grid-template-columns: 1fr; }
}
