/* ==========================================================================
   Impano Crafts — site styles
   Palette taken from the woven bowls: cream, sisal, tan, brown and black.
   ========================================================================== */

:root {
  --bg: #f7f2ea;          /* cream */
  --surface: #fffdf9;     /* card */
  --band: #efe5d4;        /* light sisal */
  --line: #ddcfb9;
  --ink: #1e1916;         /* headings, black rims */
  --ink-soft: #3f362f;    /* body text */
  --muted: #6b5f54;
  --tan: #b78a55;
  --brown: #7a4f2c;
  --gold-on-dark: #d9b37e;
  --cream-on-dark: #f3ebdf;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 24px;
  --radius-md: 20px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 76px;

  /* Concentric rings, like a coiled basket seen from above */
  --coil: repeating-radial-gradient(circle at center, var(--line) 0 1px, transparent 1.5px 9px);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--tan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 14px;
}

/* ---------- Logo placeholder ---------- */

.logo-placeholder {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px dashed var(--tan);
  background: var(--coil), var(--surface);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-placeholder--small { width: 40px; height: 40px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.footer-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--tan); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); border: 1.5px solid var(--ink); }
.btn-primary:hover { background: var(--brown); border-color: var(--brown); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: rgba(30, 25, 22, 0.06); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 112px); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.lede {
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 32px;
}

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

.hero-media {
  position: relative;
  margin: 0;
}
.hero-media::before {
  /* decorative coil peeking out behind the photo */
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  right: -9%;
  top: -14%;
  border-radius: 50%;
  background: var(--coil);
  z-index: -1;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -24px rgba(30, 25, 22, 0.35);
}
.hero { position: relative; isolation: isolate; overflow: hidden; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vw, 112px) 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 56px);
  text-align: center;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.section-intro {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Meaning / definition ---------- */

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

.meaning-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.definition {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
}
.definition::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--coil);
  pointer-events: none;
}

.definition-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.definition-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.definition-sense {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 20em;
}
.sense-num { color: var(--brown); margin-right: 6px; }

.meaning-copy h2 { margin-bottom: 20px; }
.meaning-copy p + p { margin-top: 16px; }

/* ---------- Mission ---------- */

.steps {
  --steps-gap: clamp(24px, 4vw, 48px);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--steps-gap);
  text-align: center;
}
.steps::before {
  /* thread joining the three circles */
  content: "";
  position: absolute;
  top: 31px;
  left: calc((100% - 2 * var(--steps-gap)) / 6);
  right: calc((100% - 2 * var(--steps-gap)) / 6);
  border-top: 2px dashed var(--line);
}

.step { position: relative; }

.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  box-shadow: 0 0 0 8px var(--bg);
}

.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { max-width: 22em; margin-inline: auto; }

.pledge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(48px, 7vw, 72px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 52px);
  background: var(--ink);
  color: var(--cream-on-dark);
  border-radius: var(--radius-lg);
}
.pledge::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, rgba(243, 235, 223, 0.09) 0 1px, transparent 1.5px 10px);
}

.pledge-figure {
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-on-dark);
}

.pledge-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  max-width: 30em;
}

/* ---------- Crafts ---------- */

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

.craft-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.craft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 28px 34px;
  text-align: center;
}

.craft-media {
  width: 168px;
  height: 168px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
}

.craft-media.placeholder {
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--tan);
  background: var(--coil), var(--bg);
}
.craft-media.placeholder span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.craft h3 { font-size: 1.35rem; margin-bottom: 10px; }
.craft p { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream-on-dark);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 460px;
}
.footer-brand .brand-name { color: var(--cream-on-dark); margin-bottom: 6px; }
.footer-brand .logo-placeholder {
  border-color: var(--gold-on-dark);
  background: transparent;
  color: var(--cream-on-dark);
}

.footer-note { font-size: 0.95rem; color: rgba(243, 235, 223, 0.75); }

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--cream-on-dark); }
.footer-nav a:hover { text-decoration-line: underline; text-decoration-color: var(--gold-on-dark); }

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 235, 223, 0.15);
  font-size: 0.85rem;
  color: rgba(243, 235, 223, 0.6);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero-inner,
  .meaning-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 560px; }
  .hero-media::before { right: -6%; top: -10%; }
}

@media (max-width: 720px) {
  :root { --header-h: 108px; }

  .header-inner {
    flex-wrap: wrap;
    gap: 6px 24px;
    padding-block: 12px;
  }
  .site-nav { width: 100%; gap: 24px; }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .steps::before {
    /* thread runs vertically through the circles */
    top: 32px;
    bottom: 32px;
    left: 50%;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--line);
  }
  .step p { background: var(--bg); }
  .step h3 { background: var(--bg); display: inline-block; padding-inline: 8px; }

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

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

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 1.05rem; }
}
