/* ==========================================================================
   The SteerCo Notebooks — site styles
   Palette: warm white paper, charcoal ink, graphite pencil, one purple.
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
/* Pencil notes. Placeholder until the author's own handwriting font exists. */
@font-face { font-family: "Pencil"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/caveat-latin-400-normal.woff2") format("woff2"); }

:root {
  --paper: #F4F1EC;
  --paper-deep: #ECE8E2;
  --ink: #2B2B2A;
  --ink-soft: #55524E;
  --graphite: #7C7873;
  --hairline: #DAD4CC;
  --purple: #6B2FA3;
  --purple-deep: #56258A;

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --pencil: "Pencil", "Bradley Hand", cursive;

  --gutter: clamp(20px, 4vw, 56px);
  --measure: 34rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(107, 47, 163, .16); }

.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;
}

:focus-visible { outline: 1px solid var(--purple); outline-offset: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 3vw, 36px) var(--gutter);
}
.page .site-header { position: relative; }
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  letter-spacing: .04em; text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--graphite); font-weight: 400; }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  font-size: .72rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding-block: 6px;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px;
  transition: background-size .4s var(--ease), color .3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }

/* ---------- Pencil notes ---------- */
.pencil {
  font-family: var(--pencil); font-size: 1.35rem; line-height: 1.1;
  color: var(--graphite); letter-spacing: .01em;
}
.pencil-arrow { stroke: var(--graphite); stroke-width: 1.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Homepage: the desk
   ========================================================================== */
.desk {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #EEEAE5;
}
.desk__bg, .desk__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.desk__bg img { object-position: 50% 50%; }

.desk__stage {
  position: absolute; left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  width: min(92vw, 820px);
}
.desk__books {
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(28px, 5vw, 84px);
}

.book { position: relative; display: block; width: clamp(150px, 18vw, 300px); }
.book img {
  width: 100%;
  filter:
    drop-shadow(2px 3px 2px rgba(40, 32, 24, .22))
    drop-shadow(14px 18px 22px rgba(60, 48, 36, .20));
  transition: transform .7s var(--ease), filter .7s var(--ease);
  will-change: transform;
}
.book--01 img { transform: rotate(-2.2deg); }
.book--02 { margin-top: clamp(10px, 2vw, 34px); }
.book--02 img { transform: rotate(3deg); }

a.book--01:hover img, a.book--01:focus-visible img {
  transform: rotate(-2.6deg) translate(-4px, -10px) scale(1.015);
  filter:
    drop-shadow(3px 5px 3px rgba(40, 32, 24, .18))
    drop-shadow(26px 34px 34px rgba(60, 48, 36, .22));
}
.book--02:hover img {
  transform: rotate(3.4deg) translate(-2px, -4px);
  filter:
    drop-shadow(2px 4px 3px rgba(40, 32, 24, .2))
    drop-shadow(18px 24px 26px rgba(60, 48, 36, .2));
}
a.book:focus-visible { outline: none; }

/* pencil note: "start here" */
.note-start {
  position: absolute; right: calc(100% + 6px); top: 18%;
  display: flex; flex-direction: column; align-items: flex-end;
  transform: rotate(-4deg); pointer-events: none; white-space: nowrap;
}
.note-start svg { width: 70px; height: 34px; margin-top: 2px; }

/* pencil note on the sealed volume, appears on hover */
.note-sealed {
  position: absolute; left: 50%; top: calc(100% + 14px);
  transform: translateX(-50%) rotate(-1.5deg);
  white-space: nowrap; opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.book--02:hover .note-sealed, .book--02:focus-within .note-sealed { opacity: 1; }

.desk__caption {
  margin: clamp(26px, 4vh, 48px) 0 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--ink-soft); max-width: 30rem; line-height: 1.45;
}

@media (max-width: 720px) {
  /* crop more from the bottom than the top, so the pen stays clear of the menu */
  .desk__bg img { object-position: 50% 12%; }
  .desk__stage { top: 50%; }
  .book { width: 37vw; }
  .desk__books { gap: 7vw; }
  .note-start {
    right: auto; left: 50%; top: calc(100% + 10px);
    flex-direction: column-reverse; align-items: center;
    transform: translateX(-50%) rotate(-2deg); font-size: 1.15rem;
  }
  .note-start svg { width: 26px; height: 22px; margin: 0 0 2px; transform: rotate(-90deg); }
  .note-sealed { opacity: 1; font-size: 1.15rem; top: calc(100% + 18px); }
  .desk__caption { font-size: 1rem; padding-inline: 8vw; margin-top: 62px; }
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page { background: var(--paper); }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }

.eyebrow {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--graphite); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.lede {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.4; color: var(--ink-soft); margin: 18px 0 0; max-width: var(--measure);
}
.prose p { max-width: var(--measure); margin: 0 0 1.1em; color: var(--ink-soft); }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: clamp(56px, 8vw, 96px) 0; }

.section { padding-block: clamp(48px, 8vw, 110px); }

/* ---------- Product page ---------- */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
  padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 110px);
}
.product__visual {
  position: relative; background: var(--paper-deep);
  padding: clamp(36px, 7vw, 90px); display: grid; place-items: center;
}
.product__visual img {
  width: min(100%, 400px); transform: rotate(-1.5deg);
  filter: drop-shadow(2px 3px 2px rgba(40,32,24,.2)) drop-shadow(18px 24px 26px rgba(60,48,36,.2));
}
.product__visual .pencil { position: absolute; right: 7%; bottom: 5%; transform: rotate(-3deg); }

.facts { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--hairline); max-width: var(--measure); }
.facts li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: .92rem;
}
.facts span:first-child { color: var(--graphite); }
.facts .tbc { font-family: var(--pencil); font-size: 1.15rem; color: var(--graphite); }

.buy { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 17px 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .3s, border-color .3s;
}
.button:hover { background: var(--purple); border-color: var(--purple); }
.button[aria-disabled="true"] { background: transparent; color: var(--graphite); border-color: var(--hairline); cursor: default; }

.contents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.contents__part { padding: 26px 26px 30px 0; border-right: 1px solid var(--hairline); }
.contents__part + .contents__part { padding-left: 26px; }
.contents__part:last-child { border-right: 0; }
.contents__part .when { font-size: .78rem; color: var(--graphite); margin: 6px 0 18px; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li { display: flex; gap: 12px; padding: 7px 0; font-size: .95rem; line-height: 1.4; }
.contents li b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; color: var(--purple); min-width: 1.4em; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 100px); align-items: end; padding-top: clamp(32px, 6vw, 80px); }
.portrait {
  aspect-ratio: 4 / 5; border: 1px solid var(--hairline); background: var(--paper-deep);
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.dossier { margin: 0; border-top: 1px solid var(--ink); }
.dossier div {
  display: grid; grid-template-columns: minmax(140px, .32fr) 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--hairline);
}
.dossier dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); padding-top: 4px; }
.dossier dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.dossier dd small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--graphite); margin-top: 4px; line-height: 1.5; }
.serious { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); }
.serious h3 { font-size: 1.15rem; margin: 28px 0 6px; }

/* ---------- Freebies ---------- */
.freebies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(40px, 6vw, 72px); }
.freebie { position: relative; border: 1px solid var(--hairline); background: #F8F6F2; padding: 26px 26px 30px; }
.freebie__sheet {
  aspect-ratio: 16 / 9; background: #fff; border: 1px solid var(--hairline); margin-bottom: 22px;
  display: grid; grid-template-rows: repeat(5, 1fr); padding: 14px; gap: 6px; position: relative; overflow: hidden;
}
.freebie__sheet i { display: block; border-bottom: 1px solid #ECE8E2; }
.freebie__sheet i.hit { background: linear-gradient(90deg, transparent 52%, rgba(107,47,163,.75) 52% 70%, transparent 70%); }
.freebie__sheet::after { /* glassine veil: not yet released */
  content: ""; position: absolute; inset: 0; background: rgba(244, 241, 236, .55); backdrop-filter: blur(1.5px);
}
.freebie .meta { font-size: .78rem; color: var(--graphite); margin: 8px 0 0; }
.freebie .pencil { position: absolute; right: 18px; top: 16px; font-size: 1.15rem; transform: rotate(-4deg); z-index: 2; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline); padding: 34px 0 44px; font-size: .8rem; color: var(--graphite);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .product, .about-hero, .serious { grid-template-columns: 1fr; }
  .contents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents__part:nth-child(2) { border-right: 0; }
  .contents__part:nth-child(3) { padding-left: 0; }
  .contents__part:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .freebies { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .desk .site-header { flex-direction: row; }
  .desk .nav a { font-size: .62rem; letter-spacing: .12em; }
  .desk .wordmark span { display: none; }
  .contents { grid-template-columns: 1fr; }
  .contents__part, .contents__part + .contents__part { padding: 22px 0; border-right: 0; }
  .contents__part + .contents__part { border-top: 1px solid var(--hairline); }
  .dossier div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
