@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Space+Mono:wght@400;700&display=swap');

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #35394a;
  background: #f7f5ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; }
a { color: #456550; text-underline-offset: 3px; }
a:hover { color: #087f8c; }
a:focus-visible { outline: 3px solid #087f8c; outline-offset: 4px; }

.guide-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid rgba(50, 56, 71, .12);
}
.guide-brand { display: inline-flex; flex: none; align-items: center; color: #292f43; text-decoration: none; }
.guide-logo { display: block; width: 148px; height: auto; }
.guide-nav { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.guide-nav a { color: #626777; text-decoration: none; }
.guide-nav a:hover { color: #087f8c; }

.guide-main { width: min(100% - 40px, 820px); margin: 0 auto; padding: 40px 0 80px; }
.guide-breadcrumb { margin: 0 0 24px; color: #777a7b; font-size: 12px; }
.guide-breadcrumb a { color: #5b6c5d; }
.guide-label {
  margin: 0 0 12px;
  color: #7b7668;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.guide-title {
  max-width: 760px;
  margin: 0;
  color: #292f43;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.guide-deck { max-width: 700px; margin: 18px 0 0; color: #6b6e76; font-size: 17px; line-height: 1.7; }
.guide-meta { margin-top: 17px; color: #78796f; font-size: 12px; }
.guide-rule { height: 1px; margin: 30px 0; border: 0; background: #e3dece; }
.guide-content { max-width: 720px; }
.guide-content h2 {
  margin: 38px 0 12px;
  color: #303649;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 33px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.guide-content h3 { margin: 25px 0 8px; color: #373c4d; font-size: 17px; line-height: 1.4; }
.guide-content p, .guide-content li { color: #555a67; font-size: 16px; line-height: 1.85; }
.guide-content p { margin: 12px 0; }
.guide-content li + li { margin-top: 8px; }
.guide-content ul, .guide-content ol { padding-left: 25px; }
.guide-callout, .rack-example {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid #e4ddc9;
  border-radius: 14px;
  background: #fcfaf4;
}
.guide-callout p:last-child, .rack-example p:last-child { margin-bottom: 0; }
.rack-letters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }
.rack-letters span {
  display: grid;
  width: 36px;
  height: 42px;
  place-items: center;
  border: 1px solid #e4ddc9;
  border-radius: 8px;
  background: #fffefb;
  color: #354d40;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  font-weight: 650;
}
.guide-content .guide-cta {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 9px;
  background: #292f43;
  color: #fffdf7;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.guide-content .guide-cta:hover { background: #3c455e; color: white; }
.guide-footer {
  padding: 24px 20px 32px;
  border-top: 1px solid rgba(50, 56, 71, .12);
  color: #73767b;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.guide-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; margin-bottom: 10px; }
.guide-footer [hidden] { display: none; }
.legal-notice { margin-top: 26px; }
.contact-form { display: grid; gap: 18px; margin: 26px 0; }
.contact-field { display: grid; gap: 7px; }
.contact-field label { color: #303649; font-size: 14px; font-weight: 650; }
.contact-field input, .contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d8d4c8;
  border-radius: 9px;
  background: #fffefb;
  color: #35394a;
  font: inherit;
}
.contact-field textarea { min-height: 160px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible {
  outline: 3px solid rgba(8, 127, 140, .35);
  border-color: #087f8c;
}
.contact-form-button {
  min-height: 46px;
  justify-self: start;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: #292f43;
  color: #fffdf7;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.contact-form-button:hover { background: #3c455e; }
.contact-form-button:focus-visible { outline: 3px solid #087f8c; outline-offset: 3px; }
.contact-status { min-height: 1.5em; margin: 0; color: #456550; font-size: 14px; }

@media (max-width: 600px) {
  .guide-header { min-height: 68px; padding: 0 18px; }
  .guide-nav { gap: 13px; font-size: 11px; }
  .guide-main { width: min(100% - 36px, 820px); padding-top: 28px; }
  .guide-deck { font-size: 15px; }
  .guide-content p, .guide-content li { font-size: 15px; line-height: 1.8; }
  .guide-callout, .rack-example { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Letterwise editorial pages use the same clean, cool palette as the word tools. */
:root {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #282d46;
  background: #f3f7ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body {
  position: relative;
  color: #282d46;
  background:
    radial-gradient(ellipse at 94% 12%, rgba(91,115,255,.09), transparent 25rem),
    radial-gradient(ellipse at 3% 62%, rgba(22,169,149,.07), transparent 28rem),
    #f3f7ff;
}
body::before { display: none; }
a { color: #286450; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #087f8c; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #315f49;
  outline-offset: 4px;
}
.guide-header {
  position: relative;
  z-index: 1;
  min-height: 78px;
  padding-inline: max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid #d8e0f1;
  background: rgba(243,247,255,.9);
  backdrop-filter: blur(12px);
}
.guide-brand { color: #282d46; }
.guide-logo { width: 154px; }
.guide-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #282d46;
  border-radius: 9px;
  background: #ffdf68;
  color: #282d46;
  font: 800 17px 'Bricolage Grotesque', sans-serif;
  box-shadow: 0 3px 0 #d9b541;
}
.guide-brand-name { margin-left: 8px; color: #282d46; font: 700 17px 'Bricolage Grotesque', sans-serif; letter-spacing: -.06em; }
.guide-nav { gap: 11px; }
.guide-nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #485248;
  font-weight: 600;
  transition: transform .16s, background-color .16s, border-color .16s;
}
.guide-nav a:hover { transform: translateY(-1px); border-color: #cbd6f5; background: #e3ebff; color: #455ec5; }
.guide-main {
  position: relative;
  z-index: 0;
  width: min(calc(100% - 40px), 860px);
  margin: 0 auto;
  padding: 48px 0 88px;
}
.guide-breadcrumb { color: #697064; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .04em; }
.guide-label {
  color: #087f8c;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.guide-title {
  color: #282d46;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(42px, 7.5vw, 72px);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .96;
}
.guide-deck { max-width: 720px; color: #535a57; font-size: 18px; line-height: 1.65; }
.guide-meta { color: #707466; font-family: 'Space Mono', monospace; font-size: 10px; }
.guide-rule { height: 2px; margin: 30px 0; background: linear-gradient(90deg, #0a9aa6, #e6ac13 38%, #16a995 68%, transparent); }
.guide-content { max-width: 740px; }
.guide-content h2 {
  position: relative;
  margin-top: 48px;
  padding: 14px 0 0;
  border-top: 1px solid #d6def0;
  color: #303550;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 4vw, 35px);
  font-weight: 800;
  letter-spacing: -.05em;
}
.guide-content h3 { color: #365b46; font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; font-weight: 700; }
.guide-content p, .guide-content li { color: #4d5352; font-size: 16px; line-height: 1.82; }
.guide-content ul, .guide-content ol { padding-left: 26px; }
.guide-content li::marker { color: #087f8c; font-weight: 700; }
.guide-callout, .rack-example {
  margin: 26px 0;
  padding: 23px 25px;
  border: 1px solid #d6def0;
  border-left: 5px solid #16a995;
  border-radius: 5px 14px 14px 5px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(83,105,220,.1);
  transition: transform .18s, box-shadow .18s;
}
.guide-callout:hover, .rack-example:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(83,105,220,.15); }
.rack-letters { gap: 8px; }
.rack-letters span {
  border-color: #e1b938;
  border-radius: 8px;
  background: #ffdf68;
  color: #282d46;
  font-family: 'Space Mono', monospace;
  box-shadow: 0 3px 0 #d9b541;
  transition: transform .16s;
}
.rack-letters span:hover { transform: translateY(-3px) rotate(-3deg); }
.guide-content .guide-cta, .contact-form-button {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #087f8c;
  color: #fff9df;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 0 #04545d;
  transition: transform .16s, background-color .16s, box-shadow .16s;
}
.guide-content .guide-cta:hover, .contact-form-button:hover { transform: translateY(-2px); background: #066b76; box-shadow: 0 6px 0 #04545d; color: #fff9df; }
.guide-content .guide-cta:active, .contact-form-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #04545d; }
.guide-footer {
  border-top: 1px solid #d8e0f1;
  background: rgba(255,255,255,.72);
  color: #686d64;
}
.guide-footer nav a { padding: 5px 8px; border-radius: 5px; transition: background-color .16s, color .16s; }
.guide-footer nav a:hover { background: #e3ebff; color: #455ec5; }
.legal-notice { border-left-color: #087f8c; background: #e3f4f4; }
.contact-form { gap: 20px; }
.contact-field label { color: #334c3d; font-weight: 700; }
.contact-field input, .contact-field textarea {
  border-color: #cbd6ed;
  border-radius: 9px;
  background: #fff;
  color: #282d46;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}
.contact-field input:focus-visible, .contact-field textarea:focus-visible {
  border-color: #258d78;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(22,169,149,.18);
  background: #fff;
}
.contact-status { color: #286450; }
.guide-practice-embed {
  margin: 38px 0;
  padding: 22px;
  border: 1px solid #cbd6ed;
  border-left: 5px solid #087f8c;
  border-radius: 5px 14px 14px 5px;
  background: #f4f8ff;
}
.guide-practice-embed h2 { margin-top: 0; border-top: 0; padding-top: 0; font-size: 26px; }
.guide-practice-embed p { margin: 8px 0 16px; }
.guide-practice-embed iframe { display: block; width: 100%; height: 355px; border: 0; border-radius: 10px; background: transparent; }
@media (max-width: 600px) {
  .guide-header { min-height: 68px; padding-inline: 16px; }
  .guide-logo { width: 128px; }
  .guide-nav { gap: 2px; }
  .guide-nav a { padding: 7px 8px; }
  .guide-main { width: min(calc(100% - 36px), 860px); padding-top: 32px; }
  .guide-title { font-size: clamp(40px, 11vw, 58px); }
  .guide-deck { font-size: 16px; }
  .guide-content p, .guide-content li { font-size: 15px; line-height: 1.78; }
  .guide-callout, .rack-example { padding: 18px; }
  .guide-practice-embed { padding: 16px; }
  .guide-practice-embed iframe { height: 355px; }
  body::before { top: 84px; right: 10px; width: 72px; height: 82px; opacity: .16; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
