/* ==========================================================================
   Jeffrey A. Orr — author site
   Palette derived from the printed cover of Journey to Self-Discovery.
   Single stylesheet, no build step, no dependencies.
   ========================================================================== */

:root {
  --ink: #1a1714;
  --paper: #f7f4ef;
  --navy: #2b4c7e;
  --navy-deep: #1e3557;
  --green: #5d7a5d;
  --mist: #dce4e8;
  --warm: #c8a96e;
  --bronze: #5c4822;
  --body: #4a4641;
  --muted: #7a756e;
  --line: #e3ddd3;
  --max: 68rem;
  --measure: 38rem;
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--navy-deep); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- top bar ---------- */

.topbar { border-top: 4px solid var(--warm); border-bottom: 1px solid var(--line); }
.topbar-in {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: baseline; justify-content: space-between;
  padding-block: 1.1rem;
}
.wordmark {
  font-size: 1.0625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bronze); text-decoration: none; font-weight: 600;
}
.nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9375rem; }
.nav a {
  text-decoration: none; color: var(--body);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  /* 44px minimum touch target (WCAG 2.5.8 / iOS HIG) without enlarging
     the visible text: pad the row, keep the underline tight to the label. */
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--warm); }

/* ---------- typography ---------- */

.kicker {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08; font-weight: 400; color: var(--navy);
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; }

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.2; font-weight: 400; color: var(--navy); margin-bottom: 1rem;
}

h3 { font-size: 1.1875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }

.lede {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.6; color: var(--body); max-width: var(--measure);
}

p { max-width: var(--measure); color: var(--body); }
p + p { margin-top: 1.05rem; }

.pull {
  font-size: clamp(1.1875rem, 2.6vw, 1.5rem);
  line-height: 1.5; color: var(--navy); font-style: italic;
  border-left: 3px solid var(--warm); padding-left: 1.25rem;
  max-width: var(--measure);
}

.small { font-size: 0.875rem; color: var(--muted); }

/* ---------- layout ---------- */

section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--line); }
.tint { background: var(--mist); }

.two {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 50rem) {
  .two { grid-template-columns: minmax(0, 1fr) 20rem; }
  .two.flip { grid-template-columns: 20rem minmax(0, 1fr); }
  .two.flip > .cover-col { order: -1; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero .sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--bronze); margin-top: 0.9rem; font-style: italic;
}

/* ---------- cover art ---------- */

.cover-col img {
  width: 100%; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(26,23,20,.10), 0 14px 34px -10px rgba(26,23,20,.34);
}
.cover-cap { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem; text-decoration: none; border: 1px solid var(--navy);
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- format cards ---------- */

.formats { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 34rem) { .formats { grid-template-columns: 1fr 1fr; } }

.format {
  display: block; padding: 1.25rem 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.format:hover { border-color: var(--warm); transform: translateY(-2px); }
.format .name {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze);
}
.format .price { font-size: 1.5rem; color: var(--navy); margin-top: 0.3rem; }
.format .note { font-size: 0.8125rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- lists ---------- */

.facts { list-style: none; margin-top: 1.5rem; max-width: var(--measure); }
.facts li {
  padding-left: 1.5rem; position: relative;
  color: var(--body); padding-block: 0.3rem;
}
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.95em;
  width: 0.5rem; height: 1px; background: var(--warm);
}

.specs {
  list-style: none; margin-top: 1.25rem; font-size: 0.9375rem;
  border-top: 1px solid var(--line); max-width: var(--measure);
}
.specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.55rem; border-bottom: 1px solid var(--line);
}
.specs dt, .specs .k { color: var(--muted); }
.specs .v { color: var(--ink); text-align: right; }

/* ---------- entries ---------- */

.entries { list-style: none; margin-top: 1.5rem; }
.entries li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.entries .when {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- audio ---------- */

audio { width: 100%; max-width: var(--measure); margin-top: 1.5rem; }

/* ---------- track collection ---------- */

.tracks { list-style: none; margin-top: 1.5rem; max-width: var(--measure); }
.tracks li {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1rem;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
}
.tracks li:last-child { border-bottom: 1px solid var(--line); }
.tracks .tnum {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem; letter-spacing: .08em; color: var(--warm);
  padding-top: 0.45rem; margin: 0;
}
.tracks h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.tracks .tmeta {
  margin-top: 0.3rem; font-size: 0.8125rem; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.tracks audio { margin-top: 0.9rem; }
.tracks .small { margin-top: 0.5rem; }
@media (max-width: 26rem) {
  .tracks li { grid-template-columns: 1fr; }
  .tracks .tnum { padding-top: 0; }
}

/* ---------- signup ---------- */

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.signup {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 1.5rem; max-width: var(--measure);
}
.signup input[type="email"] {
  flex: 1 1 16rem; min-width: 0;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: 0.8rem 1rem; min-height: 44px;
}
.signup input[type="email"]::placeholder { color: var(--muted); }
.signup input[type="email"]:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy);
}
.signup .btn { flex: 0 0 auto; cursor: pointer; min-height: 44px; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.foot-in { display: grid; gap: 1.25rem; }
.foot .name { color: var(--bronze); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8125rem; }
.foot p { font-size: 0.875rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
