:root {
  --green-dark: #2f5d3a;
  --green: #4a7c55;
  --sage: #b5cf8f;
  --sage-light: #e6eedb;
  --cream: #faf6ec;
  --paper: #fffdf7;
  --honey: #d9a441;
  --clay: #b8754a;
  --ink: #33302a;
  --ink-soft: #6b655a;
  --line: #e4dccb;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--green-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green); }
a:hover { color: var(--clay); }

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

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

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--green-dark);
}

.brand img { width: 36px; height: 36px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav a { display: inline-block; padding: 8px 2px; }

.nav a:focus-visible, .brand:focus-visible, .links a:focus-visible, .process-card:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

.nav a.current { color: var(--green-dark); border-bottom: 2px solid var(--honey); padding-bottom: 6px; }

/* Sections */

section { padding: 72px 0; }

section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }

/* Hero */

.hero {
  overflow-x: clip;
  background: var(--paper);
  padding: 80px 0 0;
  border-bottom: 14px solid var(--green-dark);
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.phone-art {
  perspective: 1400px;
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 260px);
  height: auto;
  transform: rotateY(-24deg) rotateX(10deg) rotateZ(7deg);
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: phone-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(36px) rotateY(-34deg) rotateX(14deg) rotateZ(11deg);
  }
}

.phone .ln {
  fill: none;
  stroke: #7fa287;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone .thin { stroke-width: 1.5; }
.phone .faint { stroke: #c9d8bd; stroke-width: 3; }
.phone .accent { stroke: var(--honey); stroke-width: 3; opacity: 0.7; }
.phone .body { fill: var(--paper); }
.phone .edge { fill: #e4ebdc; }
.phone .card { fill: var(--sage-light); opacity: 0.8; }
.phone .key { fill: var(--paper); }
.phone .photo { fill: var(--cream); }
.phone .honey { fill: var(--honey); opacity: 0.35; }
.phone .post { fill: var(--honey); opacity: 0.55; }
.phone .reply { fill: var(--sage-light); stroke: #c9d8bd; stroke-width: 1.5; }
.phone .brand-text { font-family: "Fraunces", Georgia, serif; font-size: 28px; font-weight: 600; fill: #7fa287; }
.phone .prompt-text { font-family: "Fraunces", Georgia, serif; font-size: 15px; fill: #6f9378; }
.phone .small-text { font-family: "Nunito Sans", sans-serif; font-size: 13px; font-weight: 700; fill: #7fa287; }
.phone .muted { fill: #b3c5b1; }
.phone .on-accent { fill: var(--paper); }

.hero h1 {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2em;
}

.hero .tagline {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--green);
  max-width: 30ch;
  margin-bottom: 0.9em;
}

.hero p { max-width: 62ch; color: var(--ink-soft); }

.hero h1.wordmark { margin: 0 0 0.35em; line-height: 0; }
.hero h1.wordmark img { width: clamp(220px, 30vw, 400px); height: auto; }

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--honey); color: var(--ink); }

.hero-art {
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.market { display: block; width: 100%; height: auto; overflow: visible; }

.market-nav {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  align-items: end;
  border-bottom: 2.6px solid var(--green-dark);
}

.market-side { position: relative; align-self: stretch; display: flex; align-items: flex-end; }

.market-arrow {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-dark);
  cursor: pointer;
}

.market-arrow svg { width: 22px; height: 22px; }
.market-arrow:hover:not(:disabled) { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.market-arrow:disabled { opacity: 0.3; cursor: default; }
.market-arrow:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }

.market-window {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.market-window::-webkit-scrollbar { display: none; }

.market-track { display: flex; margin: 0; padding: 0; list-style: none; }

.stall-item { flex: 0 0 calc(100% / 3); scroll-snap-align: start; }

.stall-link { display: block; position: relative; color: inherit; text-decoration: none; }

.stall-sign {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 8px 8px;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-dark);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(0.72rem, 1.05vw, 0.95rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.stall-sign .tag { font-family: "Nunito Sans", sans-serif; font-size: 0.72rem; }

.market .awning-fill { transition: fill 0.2s ease; }
a.stall-link:hover .stall-sign, a.stall-link:focus-visible .stall-sign { background: var(--honey); color: var(--ink); }
a.stall-link:hover .awning-fill, a.stall-link:focus-visible .awning-fill { fill: #f3e2b6; }
a.stall-link:focus-visible { outline: none; }
a.stall-link:focus-visible .stall-sign { outline: 3px solid var(--green-dark); outline-offset: 3px; }

.soon .market { opacity: 0.45; }
.soon .stall-sign { border-style: dashed; border-color: var(--ink-soft); color: var(--ink-soft); background: var(--cream); }
.soon .stall-sign .tag { background: var(--ink-soft); }

.market .ln {
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market .thin { stroke-width: 1.5; }
.market .faint { stroke: var(--sage); stroke-width: 2; }
.market .dashed { stroke-width: 1.2; stroke-dasharray: 3 5; }
.market .ground { stroke-width: 2.6; }

.market .awning-fill { fill: var(--sage-light); }
.market .cloth { fill: var(--cream); }
.market .honey { fill: var(--honey); opacity: 0.55; }
.market .honey-solid { fill: var(--honey); }
.market .label { fill: var(--paper); }
.market .wing { fill: var(--paper); stroke: var(--green-dark); stroke-width: 1; }
.market .berry { fill: #c4566a; stroke: var(--green-dark); stroke-width: 1; }
.market .blueberry { fill: #5b6f9a; stroke: var(--green-dark); stroke-width: 1; }
.market .apple { fill: #d9814f; }
.market .crust { fill: #e2b36f; }
.market .basket { fill: var(--cream); }
.market .leaf { fill: var(--sage); opacity: 0.55; }
.market .flag-a { fill: var(--honey); }
.market .flag-b { fill: var(--sage); }
.market .skin { fill: var(--paper); }
.market .tote { fill: var(--sage-light); }
.market .bucket { fill: #e9e5da; }
.market .leafy { fill: #9cbf86; }
.market .petal-a { fill: #e8a3ae; }
.market .petal-b { fill: #f6f1e4; stroke: #c9bfa6; stroke-width: 0.8; }
.market .sun-petal { fill: var(--honey); }
.market .center { fill: #7a5a3a; }
.market .carrot { fill: #e08a45; }
.market .cabbage { fill: var(--sage); }
.market .tomato { fill: #c95a4a; }
.market .cheese { fill: #f0cf6e; }
.market .board { fill: #c99a66; }
.market .carton { fill: #e6dcc6; }
.market .egg { fill: var(--paper); }
.market .egg-brown { fill: #e3b98c; }
.market .comb { fill: #c4566a; }
.market .urn { fill: var(--sage-light); }
.market .cup { fill: var(--paper); }
.market .sack { fill: #dcc7a2; }
.market .pot { fill: #c98a5e; }
.market .can { fill: var(--sage-light); }

@media (prefers-reduced-motion: no-preference) {
  .market .ln[pathLength] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.4s ease-out forwards;
    animation-delay: var(--d, 0s);
  }

  .market .dashed { stroke-dasharray: 3 5; animation: none; }

  .market .stall > :not(.ln),
  .market .stall .bee,
  .market .stall .tree > :not(.ln) {
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards;
    animation-delay: calc(var(--d, 0s) + 0.9s);
  }

  .market .honey, .market .leaf { animation-name: fade-in-soft; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-in-soft { to { opacity: 0.55; } }

/* Problem / solution */

blockquote {
  margin: 32px 0 0;
  padding: 20px 26px;
  border-left: 4px solid var(--honey);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--green-dark);
}

blockquote cite { display: block; margin-top: 8px; font-family: "Nunito Sans", sans-serif; font-style: normal; font-size: 0.9rem; color: var(--ink-soft); }

.name-origin {
  background: none;
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(217, 164, 65, 0.5);
  text-decoration-thickness: 0.36em;
  text-underline-offset: -0.34em;
  text-decoration-skip-ink: none;
}

.keep-together { white-space: nowrap; }

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 28px;
}

.story-split > div + div {
  border-left: 2px solid var(--line);
  padding-left: 48px;
}

.story-split p { margin: 0; max-width: 46ch; }

/* Team */

.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.member {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 16px;
}

.member img {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
}

.member h3 { margin-bottom: 4px; }
.member p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Deliverables */

.assignment {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 28px;
}

.assignment-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.85rem;
}


.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.links a:hover { background: var(--green); color: var(--cream); }

.links .placeholder {
  display: inline-block;
  padding: 7px 16px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.gallery figure { margin: 0; }

.gallery a { display: block; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }

.video {
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video video { display: block; width: 100%; height: auto; }

/* Process cards on the home page */

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.process-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
}

.process-card:hover { border-color: var(--green); color: var(--ink); }
.process-card h3 { margin: 10px 0 6px; }
.process-card p { margin: 0; color: var(--ink-soft); }

.upcoming-title { margin-top: 56px; }
.process-card.upcoming { background: transparent; border-style: dashed; }
.process-card.upcoming:hover { border-color: var(--line); }
.process-card.upcoming .tag { background: var(--ink-soft); }

/* Assignment pages */

.page-head {
  background: var(--green-dark);
  color: var(--cream);
  padding: 64px 0 56px;
}

.page-head h1 { color: var(--cream); font-size: 2.6rem; margin: 12px 0 10px; }
.page-head p { max-width: 720px; color: #e9eadf; margin: 0; }
.page-head .tag { background: var(--honey); color: var(--ink); }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -20px 0 26px;
  padding: 7px 14px 7px 8px;
  border: 1.5px solid rgba(250, 246, 236, 0.55);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.back-home svg { width: 18px; height: 18px; }
.back-home:hover { background: rgba(250, 246, 236, 0.14); color: var(--cream); }
.back-home:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
.page-head .back-home + .tag { display: table; }

.content-section { padding: 48px 0 0; }
.content-section:last-of-type { padding-bottom: 72px; }
.content-section h2 { font-size: 1.6rem; }
.content-section > .container > p { max-width: 760px; }

.doc-viewer {
  width: 100%;
  height: 640px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.embed {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.figure-wide { margin: 22px 0 0; }
.figure-wide img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.figure-wide figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 8px; max-width: 760px; }

.gallery.two { grid-template-columns: repeat(2, 1fr); }
.gallery.natural img { aspect-ratio: auto; object-fit: contain; }

table.simple {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

table.simple th, table.simple td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.simple th { background: var(--sage-light); color: var(--green-dark); }
table.simple tr:last-child td { border-bottom: 0; }

.table-wrap { overflow-x: auto; }

.figma-embed {
  margin-top: 18px;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.figma-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.device {
  width: 393px;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px;
  border-radius: 56px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--line);
}

.device-screen {
  height: 852px;
  max-height: 80vh;
  border-radius: 44px;
  overflow: hidden;
  background: var(--cream);
}

.device-screen iframe { width: 100%; height: 100%; border: 0; display: block; }

.plan { max-width: 760px; padding-left: 1.2em; }
.plan li { margin-bottom: 0.4em; }

/* Footer */

footer {
  background: var(--green-dark);
  color: #d6dccb;
  padding: 36px 0;
  font-size: 0.92rem;
}

footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--sage); }

/* Responsive */

@media (max-width: 860px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .phone { width: min(100%, 200px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding-top: 56px; }
  .hero-art { margin-top: 28px; padding: 0 8px; }
  .market-nav { grid-template-columns: 38px minmax(0, 1fr) 38px; }
  .market-side > .market { visibility: hidden; }
  .market-arrow { top: 30%; width: 34px; height: 34px; }
  .market-arrow svg { width: 18px; height: 18px; }
  .stall-sign { width: 52%; padding: 3px 2px 4px; gap: 1px; border-width: 1.5px; border-radius: 6px; }
  .stall-sign .tag { font-size: 0.6rem; padding: 1px 7px; }
  .stall-sign .sign-title { display: none; }
  .soon .stall-sign::after { content: "Soon"; font-size: 0.66rem; font-family: "Nunito Sans", sans-serif; }
  .hero-top { grid-template-columns: 1fr; }
  .phone-art { display: none; }
  .story-split { grid-template-columns: 1fr; gap: 24px; }
  .story-split > div + div { border-left: 0; padding-left: 0; border-top: 2px solid var(--line); padding-top: 24px; }
  .assignment { padding: 22px; }
  .nav { gap: 4px 16px; }
  .gallery, .gallery.two { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 2rem; }
  .doc-viewer { height: 460px; }
  .figma-embed { height: 560px; }
  .device { padding: 8px; border-radius: 40px; }
  .device-screen { max-height: 72vh; border-radius: 32px; }
  .site-header .container { padding-top: 8px; padding-bottom: 4px; }
  table.simple, table.simple tbody, table.simple tr, table.simple td { display: block; width: 100%; }
  table.simple tr:first-child { display: none; }
  table.simple tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.simple tr:last-child { border-bottom: 0; }
  table.simple td { border-bottom: 0; padding: 4px 16px; }
  table.simple td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green);
  }
  table.simple td:first-child { font-weight: 700; color: var(--green-dark); }
  .member img { width: 96px; height: 96px; }
  .member { padding: 22px 10px; }
  .member h3 { font-size: 1.1rem; }
}

.page-head .links { margin-top: 20px; }
.page-head .links a { background: var(--sage-light); border-color: var(--sage-light); color: var(--green-dark); font-weight: 700; }
.page-head .links a:hover { background: var(--honey); border-color: var(--honey); color: var(--ink); }

@media (max-width: 380px) {
  .nav { gap: 4px 11px; }
  .nav a { font-size: 0.9rem; }
}
