/* The Art of Materials — site styles
   Palette taken from the workshop flyer: cream paper, navy bands,
   rust accents, teal links. */

:root {
  /* paper */
  --cream: #f4efe0;
  --cream-2: #fbf8f0;
  --cream-3: #ede6d4;
  --line: #e1d9c6;
  --line-2: #d3c9b2;

  /* navy band */
  --band: #3f4a5e;
  --band-line: #5a6577;
  --band-ink: #eef1f5;
  --band-ink-2: #c5cdd9;
  --band-ink-3: #9aa5b4;

  /* type */
  --navy: #1b3a5c;
  --ink: #2f3945;
  --ink-2: #57636f;
  --ink-3: #7d8792;

  /* accents */
  --rust: #a85428;
  --rust-2: #c4652f;
  --rust-wash: #f6e8db;
  --terra: #b5573a;
  --teal: #158f8c;
  --teal-2: #0f7472;
  --teal-wash: #e3f0ef;
  --sand: #e7a06a;

  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
  --radius: 10px;
  --radius-sm: 6px;
  --pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-2);
}

a:hover {
  color: var(--rust);
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.24;
  margin: 0;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

h3 {
  font-size: 1.06rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

/* ---------- logo ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  background: var(--cream-2);
  border-radius: 9px;
  padding: 7px 14px 7px 11px;
}

.brand:hover {
  text-decoration: none;
}

.brand__pot {
  flex-shrink: 0;
  display: block;
  width: 34px;
  height: auto;
}

.brand__type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__the {
  color: var(--navy);
}

.brand__materials {
  color: var(--rust);
}

/* ---------- header ---------- */

.site-header {
  background: var(--band);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--band-ink-2);
  font-size: 0.92rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: #fff;
}

.nav a[aria-current="page"] {
  color: var(--cream-2);
  font-weight: 700;
  border-bottom-color: var(--sand);
}

.nav a.btn-nav {
  border-bottom: none;
  padding: 10px 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--band-line);
  border-radius: var(--radius-sm);
  color: var(--cream-2);
  width: 44px;
  height: 40px;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary,
.btn-nav {
  background: var(--rust);
  color: #fff8f2;
}

.btn--primary:hover,
.btn-nav:hover {
  background: var(--rust-2);
  color: #fff8f2;
}

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: none;
}

.btn--ghost:hover {
  background: var(--navy);
  color: var(--cream-2);
}

.btn--on-band {
  background: var(--cream-2);
  color: var(--navy);
}

.btn--on-band:hover {
  background: #fff;
  color: var(--navy);
}

.btn--outline-band {
  border-color: var(--cream-2);
  color: var(--cream-2);
  background: none;
}

.btn--outline-band:hover {
  background: var(--cream-2);
  color: var(--navy);
}

/* ---------- sections ---------- */

.section {
  padding: 58px 0;
}

.section--tight {
  padding: 34px 0;
}

.section--band {
  background: var(--band);
  padding: 54px 0;
}

.section--band h1,
.section--band h2 {
  color: var(--cream-2);
}

.section--band > .wrap > p,
.section--band .section__intro p,
.section--band .lede,
.section--band .awards li {
  color: var(--band-ink-2);
}

.section--band .eyebrow,
.section--band .rule-label,
.section--band .about__role {
  color: var(--sand);
}

.section--band .rule-label {
  border-bottom-color: var(--band-line);
}

.section--band .awards li {
  border-top-color: var(--band-line);
}

.section--band .awards li strong {
  color: var(--cream-2);
}

.section--band .shot {
  background: #4a566b;
  border-color: var(--band-line);
}

.section--band .shot--missing {
  color: var(--band-ink-2);
  border-color: var(--band-line);
}

.section--band .piece {
  border-top-color: var(--band-line);
}

.section--band .filter {
  background: transparent;
  border-color: var(--band-line);
  color: var(--band-ink-2);
}

.section--band .filter:hover {
  color: #fff;
  border-color: var(--cream-2);
}

.section--band .filter[aria-pressed="true"] {
  background: var(--cream-2);
  border-color: var(--cream-2);
  color: var(--navy);
}

.section--band .note {
  background: rgba(231, 160, 106, 0.14);
  border-left-color: var(--sand);
  color: #f6ddc6;
}

.section--band .about p,
.section--band .card.is-on-band p {
  color: var(--band-ink-2);
}

/* a callout already sitting on navy drops its own fill */
.callout--on-band {
  background: transparent;
  border: 1px solid var(--band-line);
  padding: 24px 28px;
}

.section__intro {
  max-width: 60ch;
  margin-bottom: 28px;
}

.section__intro p {
  color: var(--ink-2);
}

/* the flyer's white capsule heading */
.pill {
  display: block;
  background: var(--cream-2);
  color: var(--navy);
  border-radius: var(--pill);
  text-align: center;
  padding: 16px 32px;
  margin: 0 0 30px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

.section--band .pill {
  color: var(--navy);
}

.rule-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.05rem;
  max-width: 58ch;
  color: var(--ink-2);
}

/* ---------- hero ---------- */

.hero {
  padding: 66px 0 54px;
}

.hero--band {
  background: var(--band);
}

.hero--band h1 {
  color: var(--cream-2);
}

.hero--band p {
  color: var(--band-ink-2);
}

.hero--band .eyebrow {
  color: var(--sand);
}

.hero--band .shot {
  background: #4a566b;
  border-color: var(--band-line);
}

.hero--band .shot--missing {
  color: var(--band-ink-2);
  border-color: var(--band-line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}

.hero p {
  max-width: 48ch;
  margin-bottom: 26px;
/*  color: var(--ink-2); */
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- stats ---------- */

.stats {
  background: var(--band);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--band-line);
}

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

.stat__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sand);
  line-height: 1.1;
}

.stat__label {
  font-size: 0.86rem;
  color: var(--band-ink-2);
  margin-top: 6px;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section--band .card {
  border-color: transparent;
}

.card__body {
  padding: 20px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.93rem;
  color: var(--ink-2);
}

.card__icon {
  color: var(--rust);
  margin-bottom: 14px;
  display: block;
}

/* ---------- photo slots ---------- */

.shot {
  background: var(--cream-3);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot--hero {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.shot--card {
  aspect-ratio: 16 / 12.5;
  border-radius: 0;
}

.shot--square {
  aspect-ratio: 1.3 / 1.3;
  border: 1px solid var(--line);
}

.shot--portrait {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}

.shot--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.5;
  border: 1px dashed var(--line-2);
  background: var(--cream-3);
}

/* ---------- callout ---------- */

.callout {
  background: var(--band);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.callout h3 {
  color: var(--sand);
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.callout p {
  color: var(--band-ink-2);
  font-size: 0.94rem;
  max-width: 62ch;
}

.note {
  background: var(--rust-wash);
  border-left: 4px solid var(--rust);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  color: #6f3a1c;
  font-size: 0.95rem;
}

/* ---------- tags & badges ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  background: var(--rust-wash);
  color: var(--rust);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 6px 13px;
  border-radius: var(--pill);
}

.badge--quiet {
  background: var(--cream-3);
  color: var(--ink-2);
}

.badge--teal {
  background: var(--teal-wash);
  color: var(--teal-2);
}

.meta {
  color: var(--rust);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- two-column compare ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--cream-2);
}

.panel h3 {
  color: var(--navy);
}

.panel--accent {
  border-top: 5px solid var(--rust);
}

.panel--plain {
  border-top: 5px solid var(--navy);
}

.panel ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.panel li {
  font-size: 0.94rem;
  color: var(--ink-2);
  padding: 9px 0 9px 24px;
  position: relative;
  border-top: 1px solid var(--line);
}

.panel li:first-child {
  border-top: none;
}

.panel li::before {
  content: "\27A3";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--rust);
  font-size: 0.85rem;
  line-height: 1.7;
}

.panel--plain li::before {
  color: var(--navy);
}

/* ---------- steps ---------- */

.steps,
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--rust);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.93rem;
  color: var(--ink);
}

/* ---------- six stages ---------- */

.stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.stage {
  text-align: center;
}

.stage__dot {
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.stage--fire .stage__dot {
  background: var(--terra);
  color: #fff3ea;
}

.stage__label {
  font-size: 0.87rem;
  color: var(--band-ink);
  line-height: 1.4;
  display: block;
}

.stage__temp {
  display: block;
  color: var(--band-ink-3);
  font-size: 0.8rem;
}

/* ---------- module cards ---------- */

.module__no {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-2);
  display: block;
  margin-bottom: 6px;
}

.module__do {
  color: var(--rust);
  font-size: 0.9rem;
  margin: 0;
}

.card .module__do {
  color: var(--rust);
}

.module--wide {
  display: grid;
  grid-template-columns: 1fr 240px;
}

.module--wide .shot {
  border-radius: 0;
  height: 100%;
  min-height: 200px;
}

/* ---------- portfolio rows ---------- */

.piece {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.piece:first-of-type {
  border-top: none;
  padding-top: 6px;
}

.piece h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.piece p {
  max-width: 60ch;
  color: var(--ink-2);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 42px;
  align-items: start;
}

.about h1 {
  margin-bottom: 4px;
}

.about__role {
  color: var(--rust);
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.about p {
  color: var(--ink-2);
}

.awards {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.awards li {
  font-size: 0.94rem;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.awards li strong {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- form ---------- */

.form-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 38px;
  align-items: start;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: block;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fffdf8;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rust);
  outline: none;
  box-shadow: 0 0 0 3px rgba(168, 84, 40, 0.16);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2357636f' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field__error {
  display: none;
  color: #a02020;
  font-size: 0.84rem;
  margin-top: 6px;
}

.field.is-invalid .field__error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #a02020;
}

.hp {
  position: absolute;
  left: -9999px;
}

.aside-box {
  background: var(--band);
  border-radius: var(--radius);
  padding: 24px;
}

.aside-box h3 {
  color: var(--sand);
  margin-bottom: 12px;
}

.aside-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-box li {
  color: var(--band-ink-2);
  font-size: 0.92rem;
  padding: 8px 0;
  border-top: 1px solid var(--band-line);
}

.aside-box li:first-child {
  border-top: none;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.filter {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: var(--cream-2);
  color: var(--ink-2);
  cursor: pointer;
}

.filter:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.filter[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream-2);
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

/* ---------- closing band ---------- */

.band {
  background: var(--band);
  padding: 62px 0;
  text-align: center;
}

.band h2 {
  color: var(--cream-2);
}

.band p {
  color: var(--band-ink-2);
  max-width: 48ch;
  margin: 12px auto 26px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--band);
  border-top: 1px solid var(--band-line);
  padding: 34px 0;
  font-size: 0.88rem;
  color: var(--band-ink-3);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--band-ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream-2);
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--band);
    border-top: 1px solid var(--band-line);
    padding: 8px 24px 20px;
    box-shadow: 0 12px 20px rgba(20, 27, 38, 0.25);
  }

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

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--band-line);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--band-line);
  }

  .nav a.btn-nav {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero .wrap,
  .about,
  .form-layout,
  .module--wide,
  .piece {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .module--wide .shot {
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }

  .piece {
    gap: 22px;
  }

  .grid--3,
  .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .about .shot {
    max-width: 310px;
  }
}

@media (max-width: 620px) {
  .section,
  .section--band {
    padding: 44px 0;
  }

  .hero {
    padding: 42px 0 38px;
  }

  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--band-line);
  }

  .grid--3,
  .grid--2,
  .compare,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pill {
    padding: 14px 20px;
    border-radius: 24px;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .brand__type {
    font-size: 0.8rem;
  }

  .brand {
    padding: 6px 11px 6px 9px;
    gap: 8px;
  }

  .brand__pot {
    width: 28px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
