/* Craft Systems: warm stone, olive and an editorial type-led layout. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg: #f5f4ef;
  --bg-alt: #ecebe3;
  --bg-panel: #fbfaf6;
  --bg-field: #ffffff;
  /* Text */
  --text: #1f211b;
  --text-muted: #565a4c;
  --text-subtle: #62665a;
  /* Olive */
  --olive: #3d4733;
  --olive-hover: #2e3627;
  --olive-deep: #2b3324;
  --olive-mid: #66724f;
  --sage: #e3e6d6;
  --sage-strong: #d3d8c0;
  /* Lines */
  --border: #d8d7cc;
  --border-strong: #b7b6a7;
  /* Semantic */
  --danger: #8f2a2a;
  /* Type */
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Layout */
  --max-width: 1240px;
  --radius-sm: 4px;
  --radius: 3px;
  --radius-lg: 3px;
}

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

html {
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--olive-mid);
  outline-offset: 4px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--olive);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

/* ========== HEADER ========== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 239, 0.95);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.header.scrolled {
  background: rgba(245, 244, 239, 1);
  border-bottom-color: var(--border-strong);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--olive);
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a,
.nav-links-mobile a {
  color: var(--text-muted);
  white-space: nowrap;
  text-underline-offset: 6px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.nav-links a:hover,
.nav-links-mobile a:hover {
  color: var(--olive);
  text-decoration-color: var(--border-strong);
}

.nav-links a[aria-current="page"],
.nav-links-mobile a[aria-current="page"] {
  color: var(--olive);
  text-decoration-color: var(--olive);
}

.nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.nav-links-mobile a {
  font-size: 1rem;
  padding: 0.6rem 0;
}

.nav-links-mobile[hidden] {
  display: none;
}

/* ========== BUTTONS AND LINKS ========== */

.btn {
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.3;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--olive);
  border-color: var(--olive);
  color: #f8f8f2;
}

.btn-primary:hover {
  background: var(--olive-hover);
  border-color: var(--olive-hover);
}

.btn-light {
  background: #f3f4ea;
  border-color: #f3f4ea;
  color: var(--olive-deep);
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--olive);
  font-weight: 600;
  font-size: 0.9375rem;
  padding-block: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.15s ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* ========== TYPE ========== */

.site-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-content > section {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.site-content h1,
.site-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

.site-content h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.site-content h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.site-content h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.site-content p {
  line-height: 1.75;
}

.lead {
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 50ch;
}

.prose {
  max-width: 64ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose .text-link {
  margin-top: 1rem;
}

.prose a:not(.text-link):not(.btn) {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

/* ========== HOME ========== */

.studio-hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: 1.08;
  max-width: 1150px;
  letter-spacing: -0.045em;
}

.studio-hero h1 em {
  color: var(--olive);
  font-style: normal;
}

.site-content > .studio-hero {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3.5rem;
  align-items: start;
}

.hero-caption {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-top: 0.3rem;
}

.hero-bottom .lead { margin-top: 0; max-width: 49ch; }

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

.work-index {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.work-intro p {
  max-width: 32ch;
  color: var(--text-muted);
  margin: 1.5rem 0 1rem;
}

.work-list > div {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
}

.work-list > div:first-child { padding-top: 0; border-top: 0; }
.work-list > div:last-child { padding-bottom: 0; }
.work-list dt { font-weight: 600; line-height: 1.6; }
.work-list dd { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.8; }

.site-content > .project-note {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--olive-deep);
  color: var(--bg);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.project-note h2 { color: var(--bg); font-size: clamp(2rem, 3.5vw, 3rem); }
.project-note .text-link { color: var(--bg); margin-top: 1.5rem; }
.project-note-copy p { color: #d3d8c3; }
.project-note-copy p:first-child { color: var(--bg); font-size: 1.2rem; }
.project-note-copy p + p { margin-top: 1.25rem; }

.industry-note {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.section-note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.section-intro {
  max-width: 48ch;
}

.section-intro p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.rows {
  margin-top: 2.5rem;
}

.rows article {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.rows p {
  color: var(--text-muted);
}

.rows .example-line {
  font-size: 0.9375rem;
  color: var(--text-subtle);
}

.facts {
  margin-top: 2.5rem;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--border);
}

.facts dt {
  font-weight: 650;
}

.facts dd {
  color: var(--text-muted);
  line-height: 1.75;
}

.closing {
  border-top: 1px solid var(--border-strong);
  display: flex;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: center;
}

.closing p {
  max-width: 62ch;
  color: var(--text-muted);
  margin-top: 1rem;
}

.closing .btn {
  flex-shrink: 0;
}

/* ========== INNER PAGES ========== */

.page-hero {
  max-width: 850px;
  padding-bottom: 2rem !important;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
}

.page-hero > p {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-layout img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.about-layout h2 {
  margin-bottom: 1.25rem;
}

.details {
  margin-top: 1.5rem;
  max-width: 62ch;
}

.details > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
}

.details > div:last-child {
  border-bottom: 1px solid var(--border);
}

.details dt {
  font-weight: 650;
}

.details dd {
  color: var(--text-muted);
}

.not-a-fit {
  max-width: 64ch;
  margin-top: 1.5rem;
  color: var(--text-muted);
  list-style: none;
}

.not-a-fit li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.not-a-fit li:last-child {
  border-bottom: 1px solid var(--border);
}

.faq {
  max-width: 820px;
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--olive-mid);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details .prose {
  padding-bottom: 1.5rem;
}

/* ========== CONTACT FORM ========== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-layout h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: 1.5rem;
}

.contact-layout .prose {
  font-size: 1.0625rem;
}

.contact-methods {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-methods p + p {
  margin-top: 0.6rem;
}

.contact-methods a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.field + .field {
  margin-top: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-field);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--olive-mid);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--olive-mid);
  outline-offset: 1px;
  border-color: var(--olive);
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
  line-height: 1.6;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.form-note {
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alert {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.9375rem;
}

.alert-success {
  background: var(--sage);
  border-color: var(--olive-mid);
  color: var(--olive-deep);
}

.alert-error {
  background: #f6e7e4;
  border-color: #c99a94;
  color: var(--danger);
}

/* ========== LEGAL ========== */

.legal {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.legal h2 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0.5rem 0 1.25rem 1.4rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .updated {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* ========== 404 ========== */

.notfound {
  max-width: 640px;
  min-height: 50vh;
}

.notfound p {
  margin: 1.25rem 0 2rem;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */

footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0 2.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 44ch;
}

.footer-mark {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-brand p + p {
  margin-top: 0.35rem;
}

.footer-links {
  display: flex;
  gap: 0.6rem 1.5rem;
  flex-wrap: wrap;
  align-content: flex-start;
  max-width: 34rem;
}

.footer-links a {
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1080px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 1081px) {
  .nav-links-mobile {
    display: none;
  }
}

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


  .rows article {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }

  .rows article > h2 {
    grid-column: 1 / -1;
  }

  .about-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 680px) {
  .split,
  .facts > div {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .split {
    gap: 1.5rem;
  }

  .rows article {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout img {
    max-width: 240px;
  }

  .details > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .closing {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .form {
    padding: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.6875rem;
  }
}

@media (max-width: 420px) {
  .brand-tagline {
    display: none;
  }

}

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

.flush {
  margin-top: 0;
}

.more {
  margin-top: 1.25rem;
}

/* The homepage moves from an open masthead to compact working notes. */
@media (max-width: 900px) {
  .work-index { grid-template-columns: 1fr; }
  .work-intro p { max-width: 52ch; }
  .work-list > div:first-child { padding-top: 1.8rem; border-top: 1px solid var(--border); }
}

@media (max-width: 680px) {
  .hero-bottom, .project-note, .industry-note,
  .site-content > .project-note { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-bottom { margin-top: 2rem; }
  .work-list > div { grid-template-columns: 1fr; gap: 0.75rem; }
  .work-list dt br { display: none; }
  .studio-hero h1 { font-size: clamp(2.25rem, 8.5vw, 3.6rem); }
  .site-content > .project-note { padding: 2rem 1.5rem; }
}

.rows article > h2 { font-size: 1.75rem; }
