/* ==========================================================================
   Adjectif Creation — Design System
   Multidisciplinary design & research studio.
   Motif: two overlapping circles + diagonal line + dashed crosshair guides,
   drawn from the studio mark. Dashed rules and ring/crosshair marks carry
   that language through dividers, list markers, and captions.
   ========================================================================== */

:root {
  /* Color */
  --cream: #ECE7DA;
  --paper: #F7F3EA;
  --navy: #2B3A6B;
  --navy-faint: rgba(43, 58, 107, 0.15);
  --navy-soft: rgba(43, 58, 107, 0.45);
  --ink: #1B1B1B;
  --ink-soft: rgba(27, 27, 27, 0.6);

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;

  --size-h1: clamp(2.75rem, 6vw + 1rem, 4.75rem); /* ~44px -> ~76px */
  --size-h2: clamp(1.9rem, 3.2vw + 1rem, 2.75rem);
  --size-h3: clamp(1.35rem, 1.4vw + 1rem, 1.75rem);
  --size-label: 0.8rem;   /* 12-14px small-caps style labels */
  --size-body: 1rem;      /* 15-16px */
  --size-small: 0.875rem;

  /* Spacing / layout */
  --content-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --radius: 2px;

  /* Motif */
  --dash-hairline: repeating-linear-gradient(
    to right, var(--navy) 0 4px, transparent 4px 10px
  );
  --dash-soft: repeating-linear-gradient(
    to right, var(--navy-soft) 0 3px, transparent 3px 8px
  );

  /* Page background — the one deliberate gradient in the system, blending
     the palette's paper/cream tones with a whisper of navy bleeding from
     the top-right corner (echoing the hero logo bleed). Every other
     surface (buttons, cards, pills) stays flat. */
  --gradient-page:
    radial-gradient(120% 90% at 100% 0%, rgba(43, 58, 107, 0.09), transparent 60%),
    linear-gradient(160deg, var(--paper) 0%, var(--cream) 55%, var(--cream) 100%);
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-image: var(--gradient-page);
  background-color: var(--cream);
  background-repeat: no-repeat;
  background-size: 100vw 100vh;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1, .h1 {
  font-size: var(--size-h1);
  line-height: 1.03;
  font-weight: 460;
  letter-spacing: -0.015em;
}

h2, .h2 {
  font-size: var(--size-h2);
  line-height: 1.1;
}

h3, .h3 {
  font-size: var(--size-h3);
  line-height: 1.2;
}

.eyebrow, .label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

p, .body-text {
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink);
}

.text-soft { color: var(--ink-soft); }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.small-caps {
  font-family: var(--font-body);
  font-size: var(--size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }

/* -------------------------------------------------------------------------
   Signature motif — dashed dividers
   ------------------------------------------------------------------------- */
.divider {
  height: 1px;
  width: 100%;
  background-image: var(--dash-hairline);
  border: 0;
}

.divider--soft {
  background-image: var(--dash-soft);
}

.divider--vertical {
  width: 1px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom, var(--navy-soft) 0 3px, transparent 3px 8px
  );
}

.hairline {
  border: 0;
  border-top: 1px solid var(--navy-faint);
}

/* -------------------------------------------------------------------------
   Signature motif — ring / crosshair marks
   ------------------------------------------------------------------------- */
.mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url('../assets/mark-crosshair.svg') no-repeat center / contain;
  flex-shrink: 0;
}

.mark--lg {
  width: 22px;
  height: 22px;
}

.mark--sm {
  width: 10px;
  height: 10px;
}

.list-marks {
  list-style: none;
}

.list-marks li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.6rem;
}

.list-marks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 14px;
  height: 14px;
  background: url('../assets/mark-crosshair.svg') no-repeat center / contain;
}

.caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   Logo mark
   ------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo__mark {
  width: 44px;
  height: 44px;
}

.logo__word {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo-bleed {
  position: absolute;
  width: clamp(320px, 34vw, 560px);
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--navy);
  color: var(--cream);
}

.btn--primary:hover {
  background: transparent;
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
}

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

.btn--text {
  border: 0;
  padding: 0;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--navy-faint);
  text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Pills / tags
   ------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--navy-faint);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--size-small);
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card__frame {
  background: var(--paper);
  border: 1px solid var(--navy-faint);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__frame svg { width: 100%; height: 100%; }

.card__caption {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--size-small);
  color: var(--ink-soft);
}

.card__caption strong {
  font-weight: 500;
  color: var(--ink);
}

/* -------------------------------------------------------------------------
   Color swatch (design-system reference only)
   ------------------------------------------------------------------------- */
.swatch {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.swatch__block {
  height: 96px;
  border: 1px solid var(--navy-faint);
}

.swatch__meta {
  font-size: var(--size-small);
}

.swatch__meta .name { display: block; font-weight: 500; }
.swatch__meta .value { display: block; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   Grid utilities
   ------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   Homepage — anchor scroll offset for the sticky nav
   ------------------------------------------------------------------------- */
section[id], footer[id] {
  scroll-margin-top: 5.5rem;
}

/* -------------------------------------------------------------------------
   Site header / nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--navy-faint);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: var(--size-small);
  letter-spacing: 0.02em;
}

.nav-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--navy-faint);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
  }

  .nav-links a {
    padding: 1rem var(--gutter);
    border-top: 1px solid var(--navy-faint);
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .nav-inner { gap: 0.75rem; }
  .logo__word { font-size: 0.78rem; letter-spacing: 0.01em; white-space: nowrap; }
  .nav-actions { gap: 0.65rem; }
  .nav-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.7rem; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.hero h1 {
  margin-top: 1.25rem;
}

.hero__subhead {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* -------------------------------------------------------------------------
   Statement
   ------------------------------------------------------------------------- */
.statement {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--gutter);
  align-items: start;
}

.statement__mark {
  width: 100%;
  max-width: 110px;
}

.statement__text .eyebrow {
  margin-bottom: 1.25rem;
}

.statement__text p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 56ch;
}

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

  .statement__mark {
    max-width: 64px;
  }
}

/* -------------------------------------------------------------------------
   Selected work — asymmetric grid
   ------------------------------------------------------------------------- */
.section-head {
  margin-bottom: 2.75rem;
  max-width: 62ch;
}

.section-head h2 {
  margin-top: 0.75rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.work-grid > .card:nth-child(1) { grid-column: 1 / 8; }
.work-grid > .card:nth-child(2) { grid-column: 8 / 13; margin-top: 3.5rem; }
.work-grid > .card:nth-child(3) { grid-column: 1 / 6; margin-top: 1.5rem; }
.work-grid > .card:nth-child(4) { grid-column: 6 / 13; }

/* homepage teaser: 3 items instead of the full 4, own asymmetric composition */
.work-grid--preview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.work-grid--preview > .card:nth-child(1) { grid-column: 1 / 8; }
.work-grid--preview > .card:nth-child(2) { grid-column: 8 / 13; margin-top: 3.5rem; }
.work-grid--preview > .card:nth-child(3) { grid-column: 1 / 13; margin-top: 2rem; }

.card--tall .card__frame { aspect-ratio: 3 / 4; }
.card--wide .card__frame { aspect-ratio: 16 / 9; }

.card__leader {
  width: 44px;
  height: 1px;
  background-image: var(--dash-soft);
  margin-top: 0.25rem;
}

@media (max-width: 760px) {
  .work-grid,
  .work-grid--preview {
    grid-template-columns: 1fr;
  }

  .work-grid > .card,
  .work-grid--preview > .card {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
  }
}

/* -------------------------------------------------------------------------
   "View all" links — teaser sections point to their full page
   ------------------------------------------------------------------------- */
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1px solid var(--navy-faint);
  padding-bottom: 3px;
}

.view-all:hover {
  border-bottom-color: var(--navy);
}

/* -------------------------------------------------------------------------
   Subpage header — Studio / Work / Shop / Contact
   ------------------------------------------------------------------------- */
.page-header {
  padding-block: var(--section-space);
}

.page-header h1 {
  margin-top: 0.75rem;
  font-size: var(--size-h2);
}

.page-header p {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   Studio shop
   ------------------------------------------------------------------------- */
.shop-card__name {
  margin-top: 0.25rem;
}

.shop-card__price {
  font-size: var(--size-small);
  color: var(--ink-soft);
  margin-top: -0.5rem;
}

/* Gallery wall — products float on a flat background with a cast shadow
   (filter: drop-shadow follows the object's silhouette, unlike a boxed
   card border, so it reads as a physical object rather than a thumbnail).
   This is the one place in the system that uses a drop shadow; it stays
   scoped to the shop display and isn't used anywhere else. */
.shop-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.shop-wall--preview {
  grid-template-columns: repeat(2, 1fr);
}

.shop-wall > a:nth-child(1) { margin-top: 0; }
.shop-wall > a:nth-child(2) { margin-top: 3.25rem; }
.shop-wall > a:nth-child(3) { margin-top: 1rem; }

.shop-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-item__figure {
  padding: 1.5rem 1rem 0;
}

.shop-item__figure svg,
.shop-item__figure img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(5px 8px 7px rgba(27, 27, 27, 0.20))
    drop-shadow(14px 30px 26px rgba(27, 27, 27, 0.14));
  transition: filter 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shop-item__figure img {
  max-width: 180px;
  margin-inline: auto;
}

.shop-item__shelf {
  display: block;
  width: 56%;
  height: 1px;
  margin: 1.5rem auto 1.35rem;
  background-image: var(--dash-soft);
}

.shop-item:hover .shop-item__figure svg,
.shop-item:focus-visible .shop-item__figure svg,
.shop-item:hover .shop-item__figure img,
.shop-item:focus-visible .shop-item__figure img {
  transform: translateY(-6px) scale(1.07);
  filter:
    drop-shadow(8px 16px 11px rgba(27, 27, 27, 0.26))
    drop-shadow(20px 42px 34px rgba(27, 27, 27, 0.19));
}

@media (prefers-reduced-motion: reduce) {
  .shop-item__figure svg,
  .shop-item__figure img {
    transition: filter 0.22s ease;
  }

  .shop-item:hover .shop-item__figure svg,
  .shop-item:focus-visible .shop-item__figure svg,
  .shop-item:hover .shop-item__figure img,
  .shop-item:focus-visible .shop-item__figure img {
    transform: none;
  }
}

.shop-item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .shop-wall,
  .shop-wall--preview {
    grid-template-columns: 1fr;
  }

  .shop-wall > a {
    margin-top: 0 !important;
  }
}

/* -------------------------------------------------------------------------
   Product detail page
   ------------------------------------------------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: calc(var(--gutter) * 1.5);
  align-items: center;
}

.product-detail__figure {
  position: relative;
  padding: 1rem 2rem;
}

.product-detail__figure svg,
.product-detail__figure img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(8px 14px 10px rgba(27, 27, 27, 0.20))
    drop-shadow(22px 44px 38px rgba(27, 27, 27, 0.15));
}

/* Coming-soon mask -- same treatment as the shop grid's .shop-item--soon,
   applied to an individual product's own detail page so clicking through
   from a masked tile doesn't land on a fully-revealed, unmasked photo. */
.product-detail--soon .product-detail__figure svg,
.product-detail--soon .product-detail__figure img {
  filter:
    blur(9px)
    drop-shadow(8px 14px 10px rgba(27, 27, 27, 0.20))
    drop-shadow(22px 44px 38px rgba(27, 27, 27, 0.15));
}

.coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--navy);
  padding: 0.35rem 0.75rem;
  pointer-events: none;
}

.product-detail__figure img {
  max-width: 300px;
  margin-inline: auto;
}

.product-detail__shelf {
  display: block;
  width: 70%;
  height: 1px;
  margin: 2rem auto 0;
  background-image: var(--dash-soft);
}

.product-detail__price {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.product-detail__description {
  margin-top: 1.5rem;
  max-width: 46ch;
}

@media (max-width: 760px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Pull quote section
   ------------------------------------------------------------------------- */
.pull-quote-section {
  text-align: center;
}

.pull-quote-section .pull-quote {
  max-width: 840px;
  margin-inline: auto;
}

.pull-quote-attribution {
  display: block;
  margin-top: 1.75rem;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  padding-top: var(--section-space);
  padding-bottom: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: var(--gutter);
  align-items: start;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--ink-soft);
  max-width: 30ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col .small-caps {
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

.footer-col a,
.footer-col p {
  font-size: var(--size-small);
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--navy);
}

.footer-cta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-faint);
  font-size: var(--size-small);
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }

  .footer-cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
