/* ============================================================
   LINER NOTES — Brand Stylesheet v0.1
   Text Editing & Learning Design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Outfit:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
  /* Colour system */
  --navy-deep: #0A1628;
  --navy-secondary: #14243F;
  --steel-blue: #2E4A6B;
  --muted-steel: #4A6F9A;
  --forest-green: #2D6A4F;
  --sage-green: #40916C;
  --light-sage: #52B788;
  --fog: #F4F6F9;
  --white: #FFFFFF;

  /* Semantic aliases */
  --bg: var(--fog);
  --bg-dark: var(--navy-deep);
  --text-primary: var(--navy-deep);
  --text-secondary: var(--steel-blue);
  --text-muted: var(--muted-steel);
  --text-on-dark: var(--fog);
  --text-on-dark-muted: var(--muted-steel);
  --accent: var(--forest-green);
  --accent-hover: var(--sage-green);
  --accent-detail: var(--light-sage);
  --rule: rgba(10, 22, 40, 0.12);
  --rule-on-dark: rgba(244, 246, 249, 0.18);

  /* Type */
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --margin-rail-w: 64px;
  --content-max: 1120px;
  --gutter: clamp(24px, 5vw, 72px);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 780px) {
  :root { --margin-rail-w: 0px; }
}

/* ------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

::selection {
  background: var(--forest-green);
  color: var(--fog);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--forest-green);
  outline-offset: 3px;
}

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

/* ------------------------------------------------------------
   3. Type scale & utility classes
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;

  color: var(--accent);
}

.eyebrow--muted { color: var(--text-muted); }
.eyebrow--on-dark { color: var(--light-sage); }

h1, .h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.005em;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.lede {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.body-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--steel-blue);
  max-width: 60ch;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   4. Layout shell — margin rail + content
   ------------------------------------------------------------ */
.page {
  display: grid;
  grid-template-columns: var(--margin-rail-w) 1fr;
  min-height: 100vh;
}

/* The signature element: a running editorial margin, like
   copyediting marginalia down the side of a manuscript. */
.margin-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 0;
}

.margin-rail__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-steel);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .page { grid-template-columns: 1fr; }
  .margin-rail { display: none; }
}

.content {
  min-width: 0;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

section {
  padding: clamp(56px, 9vw, 120px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 640px;
}

/* ------------------------------------------------------------
   5. Nav
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 249, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
}

.nav__mark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav__mark span {
  color: var(--accent);
  font-style: italic;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: left;
}

.nav__links a {
  font-size: 13px;
  color: var(--steel-blue);
  transition: color 0.2s var(--ease);
}

.nav__links a:hover { color: var(--forest-green); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy-deep);
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--forest-green);
  color: var(--fog);
  border: 1px solid var(--forest-green);
}
.btn--primary:hover { background: var(--sage-green); border-color: var(--sage-green); }

.btn--ghost {
  background: transparent;
  color: var(--navy-deep);
  border: 1px solid var(--rule);
}
.btn--ghost:hover { border-color: var(--forest-green); color: var(--forest-green); }

.btn--on-dark {
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--rule-on-dark);
  display: inline-flex;
  max-width: max-content;
}
.btn--on-dark:hover { border-color: var(--light-sage); color: var(--light-sage); }

/* ------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------ */
.hero {
  padding-top: clamp(64px, 11vw, 140px);
  padding-bottom: clamp(56px, 9vw, 100px);
}

.hero__eyebrow {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* This is a line before the eyebrow that I don't like */
/*.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--forest-green);
}*/

.hero h1 {
  max-width: 20ch;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: italic;
  color: var(--forest-green);
}

.hero__lede {
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__meta {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__meta-item strong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy-deep);
}

/* ------------------------------------------------------------
   8. Services (two-column split)
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 780px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card__list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: var(--steel-blue);
}

.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--sage-green);
}

/* ------------------------------------------------------------
   9. Process (timeline — order genuinely matters here)
   ------------------------------------------------------------ */
.process {
  background: var(--navy-deep);
  color: var(--fog);
}

.process .section-head .eyebrow { color: var(--light-sage); }
.process .section-head h2 { color: var(--fog); }
.process .section-head .body-text { color: var(--muted-steel); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-on-dark);
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
}

.timeline__step {
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--rule-on-dark);
}

.timeline__step:last-child { border-right: none; }

@media (max-width: 900px) {
  .timeline__step {
    border-right: none;
    border-bottom: 1px solid var(--rule-on-dark);
    padding: 24px 0;
  }
  .timeline__step:last-child { border-bottom: none; }
}

.timeline__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light-sage);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

.timeline__step h3 {
  color: var(--fog);
  margin-bottom: 10px;
}

.timeline__step p {
  font-size: 13.5px;
  color: var(--muted-steel);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   10. Projects
   ------------------------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 48px);
}

@media (max-width: 780px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-card { flex-direction: column; }
}
.projects-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}
.projects-card__img {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  background: var(--rule);
  overflow: hidden;
}
.projects-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.projects-card__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-steel);
}
.projects-card h3 {
  margin: 0;
}
.projects-card .body-text {
  font-size: 13.5px;
}

.projects-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ------------------------------------------------------------
   11. Testimonials
   ------------------------------------------------------------ */
.testimonial {
  border-left: 2px solid var(--forest-green);
  padding-left: clamp(20px, 3vw, 32px);
  max-width: 760px;
}

.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--navy-deep);
  line-height: 1.5;
  margin-bottom: 22px;
}

.testimonial__cite {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   12. About / Studio note
   ------------------------------------------------------------ */
   .about {
     display: grid;
     grid-template-columns: 0.8fr 1.2fr;
     gap: clamp(32px, 6vw, 80px);
   }

   .about__values {
     display: flex;
     flex-direction: column;
     gap: 24px;
     align-self: end;
   }

   .about__value {
     padding-top: 16px;
     border-top: 1px solid var(--rule);
   }

   @media (max-width: 860px) {
     .about {
       grid-template-columns: 1fr;
     }

     .about__values {
       align-self: auto;
     }
   }

.about__value h4 {
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 6px;
}

.about__value p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   13. FAQ (accordion)
   ------------------------------------------------------------ */
.faq-item {
  border-top: 1px solid var(--rule);
}

.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--navy-deep);
}

.faq-item__icon {
  font-family: var(--font-mono);
  color: var(--forest-green);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item[data-open="true"] .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq-item[data-open="true"] .faq-item__a {
  max-height: 240px;
}

.faq-item__a-inner {
  padding-bottom: 22px;
  font-size: 14px;
  color: var(--steel-blue);
  max-width: 62ch;
}

/* ------------------------------------------------------------
   14. Final CTA
   ------------------------------------------------------------ */
.cta {
  background: var(--navy-deep);
  color: var(--fog);
  text-align: left;
}

.cta__inner {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.cta h2 {
  color: var(--fog);
  max-width: 14ch;
}

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--navy-secondary);
  color: var(--muted-steel);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-on-dark);
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-sage);
  margin-bottom: 14px;
}

.footer__col a, .footer__col p {
  display: block;
  font-size: 13px;
  color: var(--muted-steel);
  margin-bottom: 8px;
}

.footer__col a:hover { color: var(--fog); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
