@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ---------- tokens ---------- */
:root{
  --paper:      #EDE6D6;
  --paper-2:    #E3D8C0;
  --paper-3:    #E9E1CE;
  --ink:        #221D17;
  --ink-soft:   #55493A;
  --rust:       #B6432B;
  --rust-dark:  #8F331F;
  --teal:       #1E6B5C;
  --gold:       #D69A2D;
  --magenta:    #A5205A;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "Space Mono", "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --header-h: 84px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html,body{ margin:0; padding:0; }

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* paper grain overlay — organic, not flat */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13  0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  position: relative;
  z-index: 1;
}

/* ---------- running-stitch signature ---------- */
.stitch{
  height: 9px;
  width: 100%;
  background-image: repeating-linear-gradient(
    112deg,
    currentColor 0 3px,
    transparent 3px 15px
  );
  color: var(--ink);
  opacity: .55;
}
.stitch.stitch--rust{ color: var(--rust); opacity: .8; }
.stitch.stitch--teal{ color: var(--teal); opacity: .8; }
.stitch.stitch--short{ width: 84px; }

.stitch-underline{
  position: relative;
  display: inline-block;
}
.stitch-underline::after{
  content:"";
  position:absolute;
  left: -2%;
  right: -2%;
  bottom: -.14em;
  height: 8px;
  background-image: repeating-linear-gradient(
    112deg, currentColor 0 3px, transparent 3px 14px
  );
  opacity: .7;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 2px;
  background: var(--rust);
  display:inline-block;
}

/* ---------- header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(237, 230, 214, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.brand img{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.wordmark{
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.wordmark span{ color: var(--rust); font-style: italic; }

.site-nav{
  display:flex;
  align-items:center;
  gap: clamp(16px, 2vw, 28px);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-nav a{
  position: relative;
  padding-bottom: 6px;
}

.site-nav a.current{ color: var(--rust-dark); }

.site-nav a.current::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 7px;
  background-image: repeating-linear-gradient(112deg, currentColor 0 3px, transparent 3px 12px);
}

.site-nav a:hover{ color: var(--teal); }

.nav-toggle{
  display: none;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.nav-toggle:hover{
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle__line{
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}

.nav-toggle__line:nth-child(1){ top: 16px; }
.nav-toggle__line:nth-child(2){ top: 23px; }
.nav-toggle__line:nth-child(3){ top: 30px; }

.nav-toggle.is-open .nav-toggle__line:nth-child(1){
  top: 23px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__line:nth-child(2){
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle__line:nth-child(3){
  top: 23px;
  transform: rotate(-45deg);
}

/* ---------- hero ---------- */
.hero{
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 88px);
  position: relative;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: end;
}
.hero-kicker{
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--rust-dark);
  margin-bottom: 14px;
}
.hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(58px, 10vw, 128px);
  line-height: .88;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}
.hero h1 .num{ color: var(--rust); }
.hero-tagline{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.6vw, 30px);
  color: var(--ink-soft);
  max-width: 30ch;
}
.hero-swatch-wrap{
  justify-self: end;
  transform: rotate(3deg);
}

/* ---------- cream swatch photo frames (torn / pinned) ---------- */
.swatch{
  position: relative;
  background: var(--paper-3);
  padding: 10px 10px 26px;
  box-shadow: 0 18px 34px -18px rgba(34,29,23,.45), 0 2px 0 rgba(34,29,23,.06);
  clip-path: polygon(1.5% 2%, 97% 0%, 100% 95%, 96% 100%, 3% 98.5%, 0% 6%);
}
.swatch img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.swatch::after{
  content: attr(data-tag);
  position: absolute;
  left: 10px;
  bottom: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.swatch .tape{
  position:absolute;
  top: -14px;
  left: 50%;
  width: 78px;
  height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(214,154,45,.55);
  border: 1px solid rgba(34,29,23,.12);
}
.rot-1{ transform: rotate(-2.4deg); }
.rot-2{ transform: rotate(1.8deg); }
.rot-3{ transform: rotate(-1deg); }
.rot-4{ transform: rotate(2.6deg); }

/* ---------- black photo frames (torn / pinned) ---------- */
.black_swatch{
  position: relative;
  background: var(--ink);
  padding: 10px 10px 26px;
  box-shadow: 0 18px 34px -18px rgba(34,29,23,.45), 0 2px 0 rgba(34,29,23,.06);
  clip-path: polygon(1.5% 2%, 97% 0%, 100% 95%, 96% 100%, 3% 98.5%, 0% 6%);
}
.black_swatch img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.black_swatch::after{
  content: attr(data-tag);
  position: absolute;
  left: 10px;
  bottom: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.black_swatch .tape{
  position:absolute;
  top: -14px;
  left: 50%;
  width: 78px;
  height: 26px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(214,154,45,.55);
  border: 1px solid rgba(34,29,23,.12);
}

/* ---------- generic section rhythm ---------- */
section{ position: relative; z-index: 1; }
.section{
  padding: clamp(52px, 7vw, 92px) 0;
}
.section + .section{ border-top: 0; }
.divider-row{ padding: 0; }
.divider-row .wrap{ padding-top: 6px; padding-bottom: 6px; }

.feature{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}
.feature.reverse{ direction: rtl; }
.feature.reverse > *{ direction: ltr; }

.feature h2{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.03;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}
.feature p{
  font-size: clamp(16.5px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
}
.feature p.lede{
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 25px);
  color: var(--ink);
  line-height: 1.4;
}

/* ---------- what we do ---------- */
.wwd-head{
  text-align: left;
  max-width: 720px;
  margin-bottom: 8px;
}
.wwd-head h2{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .95;
  margin: 0;
  letter-spacing: -.02em;
}
.wwd-hero-img{
  margin-top: 34px;
  max-width: 560px;
}

.wwd-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
  align-items: start;
}
.wwd-card{
  background: var(--paper-3);
  border: 1px solid rgba(34,29,23,.12);
  padding: 22px 22px 26px;
  position: relative;
}
.wwd-card:nth-child(1){ transform: rotate(-1.4deg); margin-top: 10px; }
.wwd-card:nth-child(2){ transform: rotate(1.1deg); }
.wwd-card:nth-child(3){
  transform: rotate(-.6deg);
  background: var(--ink);
  color: var(--paper);
  margin-top: 22px;
}
.wwd-card .num{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
  letter-spacing: .1em;
}
.wwd-card:nth-child(3) .num{ color: var(--gold); }
.wwd-card h3{
  font-family: var(--display);
  font-weight: 600;
  font-size: 25px;
  margin: 10px 0 12px;
  letter-spacing: -.01em;
}
.wwd-card p{ margin:0; color: var(--ink-soft); font-size: 15.5px; }
.wwd-card:nth-child(3) p{ color: rgba(237,230,214,.82); }
.wwd-card .swatch{ margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer{
  border-top: 2px solid var(--ink);
  padding: clamp(44px,7vw,72px) 0 40px;
  margin-top: 20px;
}
.footer-inner{
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}
.footer-label{
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px,3.4vw,38px);
  margin: 0 0 6px;
}
.footer-email{
  font-family: var(--mono);
  font-size: 14px;
  color: var(--rust-dark);
  border-bottom: 1px dashed var(--rust-dark);
  padding-bottom: 2px;
}
.social-row{
  display:flex;
  gap: 14px;
}
.social-row a{
  width: 44px; height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-row a:hover{
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px) rotate(-4deg);
}
.social-row svg{ width: 19px; height: 19px; }
.footer-meta{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 30px;
  letter-spacing: .04em;
}

/* ---------- page hero (about / resources) ---------- */
.page-hero{
  padding: clamp(46px,7vw,80px) 0 clamp(30px,4vw,44px);
}
.page-hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(54px, 9vw, 108px);
  line-height: .9;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  transform: rotate(-1deg);
  transform-origin: left;
}
.page-hero .sub{
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px,2.4vw,28px);
  color: var(--ink-soft);
}

/* ---------- about: team ---------- */
.about-layout{
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(34px,6vw,70px);
  align-items: start;
}
.team-list{
  display:flex;
  flex-direction: column;
  gap: 0;
}
.team-row{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(34,29,23,.18);
  gap: 16px;
}
.team-row:first-child{ padding-top: 0; }
.team-role{
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.team-name{
  font-family: var(--display);
  font-size: clamp(21px,2.4vw,28px);
  font-weight: 600;
}
.team-name.tbd{
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: .7;
}
.team-row.founder .team-name{ color: var(--rust-dark); }

.team-heading{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.team-intro{
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 26px);
  color: var(--ink-soft);
  max-width: 24ch;
  margin: 0;
}

.team-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.team-card{
  position: relative;
}

.team-card .swatch,
.team-card .black_swatch{
  margin-bottom: 14px;
}

.team-card .swatch img,
.team-card .black_swatch img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-card .team-role{
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rust-dark);
  margin: 0 0 8px;
}

.team-card .team-name{
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.02;
  font-weight: 600;
  margin: 0;
}

.team-card .team-name.tbd{
  color: var(--ink-soft);
  opacity: .72;
  font-style: italic;
  font-weight: 400;
}

.team-card:nth-child(even){
  margin-top: 20px;
}

@media (max-width: 980px){
  .team-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

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

  .team-card:nth-child(even){
    margin-top: 0;
  }
}

/* ---------- resources ---------- */
.res-group-label{
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(30px,4vw,44px);
  margin: 0 0 30px;
}
.res-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 8px;
  align-items: start;
}
.res-card{
  display:flex;
  flex-direction:column;
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}
.res-card:nth-child(1){ border-top-color: var(--rust); }
.res-card:nth-child(2){ border-top-color: var(--teal); }
.res-card:nth-child(3){ border-top-color: var(--gold); }

.res-card .media{
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  padding: 14px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(34,29,23,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.res-card .media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: auto;
}

.res-card .media img.cover{
  object-fit: cover;
}

.res-card h3{
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 10px;
}
.res-card h3 a:hover{ color: var(--rust-dark); }
.res-card blockquote{
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.res-card .visit{
  display:inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  border-bottom: 1px dashed var(--ink);
}

.books-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.book{
  display:flex;
  flex-direction: column;
}
.book .swatch{ margin-bottom: 18px; }
.book h3{
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 4px;
}
.book .by{
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rust-dark);
  margin-bottom: 10px;
}
.book p{
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}
.book:nth-child(3n+1) .swatch{ transform: rotate(-2deg); }
.book:nth-child(3n+2) .swatch{ transform: rotate(1.6deg); }
.book:nth-child(3n+3) .swatch{ transform: rotate(-1deg); }

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .header-inner{
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav{
    gap: 14px 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 12px;
  }

  .hero-grid{ grid-template-columns: 1fr; }
  .hero-swatch-wrap{ justify-self: start; max-width: 320px; }
  .feature{ grid-template-columns: 1fr; }
  .feature.reverse{ direction: ltr; }
  .wwd-cards{ grid-template-columns: 1fr; }
  .about-layout{ grid-template-columns: 1fr; }
  .res-list{ grid-template-columns: 1fr; }
  .res-card .media{
    max-width: 240px;
    margin: 0 auto 16px;
  }
  .books-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .nav-toggle{
    display: inline-flex;
  }

  .site-nav{
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(34,29,23,.16);
    margin-top: 4px;
  }

  .site-nav.is-open{
    display: flex;
  }

  .site-nav a{
    width: 100%;
    padding: 12px 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .site-nav a.current::after{
    left: 0;
    right: auto;
    width: 90px;
  }
}

@media (min-width: 761px){
  .site-nav{
    display: flex !important;
  }
}

@media (max-width: 560px){
  .wordmark{
    font-size: 20px;
  }

  .res-card{
    padding-top: 14px;
  }
  .res-card .media{
    max-width: 180px;
    padding: 10px;
    margin: 0 auto 14px;
  }
  .res-card h3{
    font-size: 20px;
  }
  .res-card blockquote{
    font-size: 14.5px;
  }

  .books-grid{
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

.form-button{
  display: inline-flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  padding: 14px 22px;
  margin-top: 18px;

  border: 2px solid var(--ink);
  background: var(--rust);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.2;

  box-shadow: 4px 4px 0 rgba(34,29,23,.14);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.form-button:hover{
  background: var(--teal);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 7px 7px 0 rgba(34,29,23,.12);
}

.form-button:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.form-button:active{
  transform: translateY(0);
  box-shadow: 2px 2px 0 rgba(34,29,23,.14);
}

.form-button--light{
  background: var(--paper-3);
  color: var(--ink);
}