/* Audiocoloring — calm, paper-like, lots of air */

:root {
  --paper: #fbf9f4;
  --paper-2: #f3eee3;
  --ink: #2b2723;
  --ink-soft: #5d564e;
  --gold: #af8b32;  /* the mascot's bronze */
  --gold-dark: #86692b;
  --frost: #5e7f7a;
  --line: #e2dbcc;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;  /* nothing may push the page sideways */
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--gold-dark); }
a:hover { color: var(--ink); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 4vw, 46px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 18px;
}
.lead { font-size: 20px; color: var(--ink-soft); max-width: 620px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 249, 244, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Menu stands on the same line as the name; the rule sits a little below the g */
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; padding-top: 22px; padding-bottom: 30px; }
/* The name stands on the same line as the bottom of the mascot */
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 96px; position: relative; top: 2px; }
/* Hand-lettered name, a picture; the g descender hangs below, so it sits a little low */
.brand .wordmark { width: auto; height: 58px; margin-top: 12px; mix-blend-mode: normal; }
.brand .wordmark-text { font: 400 56px/1 "Ephesis", cursive; white-space: nowrap; }
.brand .wordmark-text .cap { font-family: "Great Vibes", cursive; font-size: .93em; }
.site-nav { display: flex; align-items: baseline; gap: 28px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }
.site-nav .lang { color: var(--gold-dark); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 48px; }
.hero-video { position: relative; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.hero-video video { width: 100%; aspect-ratio: 1600 / 666; object-fit: cover; }
.video-sound {
  position: absolute; right: 16px; bottom: 16px;
  padding: 8px 14px; border-radius: 999px; border: 0;
  background: rgba(251, 249, 244, .85); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer;
}

/* Sections */
section { padding: 112px 0; }
section.tint { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 56px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: block; font: 500 44px/1 var(--serif); color: var(--gold); margin-bottom: 16px;
}
.step p { color: var(--ink-soft); }
.note {
  margin-top: 56px; padding: 28px 32px; border-left: 3px solid var(--gold);
  background: var(--paper); font: italic 400 23px/1.45 var(--serif); max-width: 760px;
}

/* Quiet / benefits */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split img { border-radius: 4px; box-shadow: 0 1px 0 var(--line); background: #fff; }
/* A page in a frame: white margin and a visible edge */
.split img.framed { padding: 18px; border: 1px solid #cfc4ae; border-radius: 2px; box-shadow: none; }
.qualities { list-style: none; padding: 0; margin: 32px 0 0; }
.qualities li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.qualities strong { display: block; font: 500 24px/1.2 var(--serif); margin-bottom: 4px; }
/* A hand-drawn gold tick before each quality */
.qualities li { position: relative; padding-left: 40px; }
.qualities li::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23af8b32' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.8c1.6 1.2 3.3 2.9 4.9 5.2 3-5.6 6.8-9.8 12-13.2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.qualities span { color: var(--ink-soft); }

/* Books */
.books { display: grid; gap: 96px; }
.book { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.book:nth-of-type(even) { grid-template-columns: 5fr 7fr; }
.book:nth-of-type(even) .book-img { order: 2; }
.book-img img { border-radius: 4px; }
/* A vertical reel: kept to a page-like size, centred in its column */
.book-video { display: flex; justify-content: center; }
.book-video .reel { position: relative; width: 100%; max-width: 420px; }
/* The reel cropped a little in height (9:16 -> 2:3) */
.book-video video { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 72%; background: var(--paper-2);
  clip-path: inset(3px round 4px); }  /* trims a dark hairline at the reel's edge */
.book--wide { grid-template-columns: 1fr; gap: 32px; }
.book--wide > div:last-child { display: grid; grid-template-columns: 5fr 7fr; gap: 0 56px; align-items: start; }
.book--wide .book-meta, .book--wide h3 { grid-column: 1; }
.book--wide p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.books > .carousel { margin-top: -4px; }
/* More air between the books than inside a book (a book and its carousel stay together) */
.books > .book:not(:first-child) { margin-top: 64px; }
/* Thumbelina: video on the left, its column exactly as wide as the reel, half the usual gap;
   the text column stretches to the video's height and the carousel sits at its foot,
   its dots a little below the video's bottom edge */
.book.book--reel { grid-template-columns: 420px 1fr; gap: 28px; align-items: stretch; }
.book--reel > div:not(.book-img) { display: flex; flex-direction: column; }
.book--reel .carousel { margin-top: auto; padding-top: 24px; margin-bottom: -28px; }
.book .carousel { --w: 240px; }
.book .carousel-caption .t { font-size: 20px; }
.book-meta { font-size: 14px; color: var(--ink-soft); letter-spacing: .02em; margin-bottom: 14px; }
.book p { color: var(--ink-soft); }
.pages-head { margin-top: 112px; max-width: 620px; }
.pages-head p { color: var(--ink-soft); }
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.pages figure { margin: 0; background: #fff; padding: 12px; border: 1px solid var(--line); }
.pages img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; }
.pages figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.pages figcaption span { font-size: 12px; color: var(--gold-dark); letter-spacing: .04em; }

/* Carousel of music pages */
.carousel { --w: 340px; margin-top: 72px; outline: none; }
/* Clipped at the sides only, so the enlarged centre page is not cut at top and bottom */
.carousel-stage { position: relative; height: calc((var(--w) - 30px) * 1.414 + 34px); overflow-x: clip; overflow-y: visible; touch-action: pan-y; }
.carousel-caption { position: relative; z-index: 4; }
.slide {
  position: absolute; top: 0; left: 50%; width: var(--w); margin: 0 0 0 calc(var(--w) / -2);
  background: #fff; padding: 14px; border: 1px solid var(--line); cursor: pointer;
  transition: transform .5s ease, opacity .5s ease, filter .5s ease;
}
.slide.is-side { filter: brightness(.82); }
.slide img { width: 100%; aspect-ratio: 1414 / 2000; object-fit: contain; }
/* A spread photo: as tall as a page, no white card */
.slide--wide {
  --h: calc((var(--w) - 30px) * 1.414 + 30px);
  /* as tall as a page, but never wider than the screen once enlarged in the centre (x1.12) */
  --sw: min(calc(var(--h) * 1.358), calc((100vw - 32px) / 1.12));
  width: var(--sw); margin-left: calc(var(--sw) / -2); top: calc((var(--h) - var(--sw) / 1.358) / 2);
  padding: 0; border: 0; background: none;
}
.slide--wide img { width: 100%; height: auto; aspect-ratio: 1.358; object-fit: cover; border-radius: 3px; }
.carousel-arrow {
  position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(251, 249, 244, .9);
  color: var(--ink); font: 400 26px/1 var(--serif); cursor: pointer;
}
.carousel-arrow:hover { border-color: var(--ink); }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }
.carousel-caption { text-align: center; margin: 40px 0 0; }
.carousel-caption .t { display: block; font: 500 24px/1.25 var(--serif); }
.carousel-caption .c { display: block; font-size: 13px; color: var(--gold-dark); letter-spacing: .04em; margin-top: 4px; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px;
  background: var(--line); cursor: pointer; transition: width .3s, background .3s;
}
.carousel-dots button.is-active { width: 24px; background: var(--gold); }

/* Sample form */
.sample .carousel.sample-pages { --w: 300px; margin-top: 0; }
.sample .carousel-caption .t { color: #fff; }
.sample .carousel-caption .c { color: #e7d7ae; }
.sample .carousel-dots button { background: rgba(255, 255, 255, .35); }
.sample .carousel-dots button.is-active { background: #e7d7ae; }
.sample .slide.is-side { filter: brightness(.7); }
.sample { background: var(--frost); color: #f4f1ea; }
.sample h2 { color: #fff; }
.sample .eyebrow { color: #e7d7ae; }
.sample .lead { color: #e3e8e4; }
.sample .split img { box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
form.signup { margin-top: 32px; display: grid; gap: 14px; max-width: 460px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
input[type=email], input[type=text], textarea {
  flex: 1 1 240px; padding: 14px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 400 16px/1.2 var(--sans); background: #fff; color: var(--ink);
}
textarea { border-radius: 14px; min-height: 140px; resize: vertical; width: 100%; line-height: 1.5; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sample .btn { background: #fff; color: var(--ink); border-color: #fff; }
.sample .btn:hover { background: #e7d7ae; border-color: #e7d7ae; }
.consent { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: #dfe6e2; }
.consent input { margin-top: 3px; }
.consent a { color: #fff; }
.form-status { font-size: 15px; min-height: 1.5em; }

/* Publishers */
/* Publishers: ways of working, ideas, process */
h3.sub { font-size: 30px; margin: 0 0 28px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 88px; }
.way { border-top: 2px solid var(--gold); padding-top: 22px; }
.way .eyebrow { margin-bottom: 12px; }
.way h3 { font-size: 26px; margin-bottom: 12px; }
.way p { color: var(--ink-soft); margin: 0; }
.ideas { list-style: none; padding: 0; margin: 0 0 88px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 40px; }
.ideas li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.ideas li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23af8b32' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.8c1.6 1.2 3.3 2.9 4.9 5.2 3-5.6 6.8-9.8 12-13.2'/%3E%3C/svg%3E") no-repeat center / contain; }
.ideas strong { display: block; color: var(--ink); font: 500 21px/1.3 var(--serif); margin-bottom: 2px; }
.process { list-style: none; padding: 0; margin: 0 0 88px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: proc; }
.process li { border-top: 1px solid var(--ink); padding-top: 18px; }
.process li::before { counter-increment: proc; content: counter(proc); display: block; font: 500 36px/1 var(--serif); color: var(--gold); margin-bottom: 12px; }
.process strong { display: block; font: 500 21px/1.3 var(--serif); margin-bottom: 4px; }
.process span { color: var(--ink-soft); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 56px; margin: 0 0 64px; }
.fact { padding-top: 20px; border-top: 1px solid var(--line); }
.fact strong { display: block; font: 500 24px/1.25 var(--serif); margin-bottom: 6px; }
.fact span { color: var(--ink-soft); }
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.contact form { display: grid; gap: 14px; }
.contact input, .contact textarea { border: 1px solid var(--line); }
.about { color: var(--ink-soft); }
.about strong { color: var(--ink); }
.form-note { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.form-note a { color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--ink-soft); margin-left: 20px; }

/* Legal pages */
.legal { padding: 72px 0 112px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 28px; margin-top: 48px; }
.todo { background: #fff3cd; padding: 2px 6px; border-radius: 3px; }

/* Phone */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-nav a:not(.lang) { display: none; }
  .hero { padding-top: 40px; }
  section { padding: 72px 0; }
  .steps, .split, .book, .book:nth-of-type(even), .facts, .contact { grid-template-columns: 1fr; gap: 32px; }
  .ways, .ideas { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .process { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
  h3.sub { font-size: 26px; }
  .book:nth-of-type(even) .book-img { order: 0; }
  .book--wide > div:last-child { display: block; }
  .books > .carousel { margin-top: -24px; }
  .books > .book:not(:first-child) { margin-top: 48px; }
  .book .carousel { --w: 58vw; margin-top: 28px; }
  .book.book--reel { grid-template-columns: 1fr; }
  .book--reel .carousel { padding-top: 0; margin-bottom: 0; }
  .sample .carousel.sample-pages { --w: 56vw; margin-top: 8px; }
  .books { gap: 64px; }
  .carousel { --w: 58vw; margin-top: 48px; }
  .carousel-arrow { display: none; }
  .pages-head { margin-top: 72px; }
  .pages { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 22px; }
  .brand img { width: 70px; top: 2px; }
  .brand .wordmark { width: auto; height: 44px; margin-top: 9px; }
  .brand .wordmark-text { font-size: 44px; }
  .note { padding: 22px; font-size: 20px; }
  .hero-video video { aspect-ratio: 4 / 5; }
  .site-footer a { margin: 0 20px 0 0; }
}
