/* ============================================================
   Alchemy — base styles
   Light, editorial, photography-forward
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Jost:wght@400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #1a1a1a;          /* deep neutral for body text */
  --ink-soft: #00838a;     /* logo teal, slightly deepened for readability */
  --ink-fade: #00babc;     /* logo teal at full saturation — for eyebrows, captions */
  --sage: #acd08c;         /* logo sage — secondary accent */
  --paper: #fafaf7;
  --paper-2: #f0eee6;
  --rule: #d8e4d0;         /* warmer rule line in the sage family */
  --accent: #00babc;       /* logo teal */
  --accent-2: #acd08c;     /* logo sage */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 500;        /* Quicksand reads thin at 400, 500 is the sweet spot */
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

/* ---------- typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: .5rem; }

p { margin-bottom: 1.2em; max-width: 65ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}

.main-nav a {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .main-nav { display: none; flex-direction: column; gap: 1rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--rule); }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- hero (slider) ---------- */

.hero {
  position: relative;
  height: clamp(70vh, 85vh, 880px);
  overflow: hidden;
  background: var(--paper-2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-2);
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.15) 0%, rgba(26,26,26,0.45) 100%);
}

.hero-slide-text {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 0 var(--gutter);
}

.hero-slide-text .eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

/* Logo — center-out reveal: starts small, expands and fades in */
.hero-logo {
  display: block;
  width: clamp(180px, 22vw, 280px);
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 0;
  transform: scale(0.7);
  filter: blur(6px);
}
.hero-slide.is-active .hero-logo {
  animation: heroLogoIn 1.4s cubic-bezier(.2,.8,.2,1) .1s forwards;
}
@keyframes heroLogoIn {
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Word — outlined geometric sans (Jost 700) with white stroke,
   center-out reveal: letters start compressed at center,
   spread outward via letter-spacing animation */
.hero-word {
  font-family: 'Jost', var(--sans);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  text-transform: lowercase;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
          text-stroke: 1.5px #fff;
  letter-spacing: -0.5em;       /* compressed start (overlapping at center) */
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.92);
}
.hero-slide.is-active .hero-word {
  animation: heroWordSpread 1.8s cubic-bezier(.2,.8,.2,1) .45s forwards;
}
@keyframes heroWordSpread {
  to {
    letter-spacing: 0.04em;     /* settled spacing */
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

/* Divider line — draws outward from center */
.hero-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.75);
  margin: 1.5rem auto 1.2rem;
  transform: scaleX(0);
  transform-origin: center;
}
.hero-slide.is-active .hero-divider {
  animation: heroDividerOut 1.0s cubic-bezier(.2,.8,.2,1) 1.05s forwards;
}
@keyframes heroDividerOut {
  to { transform: scaleX(1); }
}

.hero-sub {
  margin-top: 0.8rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(12px);
}

.hero-slide.is-active .hero-sub {
  animation: heroSubIn 1.2s cubic-bezier(.2,.8,.2,1) 1.35s forwards;
}

@keyframes heroSubIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: .6rem;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.hero-dots button[aria-current="true"] { background: #fff; transform: scale(1.3); }

/* ---------- page header (interior pages) ---------- */

.page-head {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.page-head h1 { margin-bottom: .4rem; }
.page-head .eyebrow { margin-bottom: .8rem; }

/* ---------- main content ---------- */

main { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gutter); }

section { margin-bottom: clamp(3.5rem, 7vw, 6rem); }

/* two-column layout: left label / right content */
.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.two-col .col-label .eyebrow { margin-bottom: 0; }
.two-col .col-body p { font-size: 1.05rem; }

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
}

/* feature grid for home tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.tile {
  display: block;
  position: relative;
  background: var(--paper-2);
  padding: 2rem 1.5rem;
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.tile h3 { font-family: var(--serif); margin-bottom: .5rem; color: var(--ink); }
.tile p { color: var(--ink-soft); font-size: .95rem; max-width: none; margin: 0; }
.tile .tile-arrow { display: inline-block; margin-top: 1rem; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }

/* image grid (gallery / engagement) */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.img-grid figure { position: relative; overflow: hidden; background: var(--paper-2); }
.img-grid img { aspect-ratio: 4/5; object-fit: cover; transition: transform .6s ease; }
.img-grid figure:hover img { transform: scale(1.04); }
.img-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  font-size: .85rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.img-grid figure:hover figcaption { opacity: 1; }

/* project cards (engagement) */
.project {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.project:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.project:nth-child(even) .project-media { order: 2; }
.project-media img { aspect-ratio: 4/3; object-fit: cover; }
.project-body h3 { margin-bottom: .8rem; }

@media (max-width: 720px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
}

/* highlight callout — for press mentions, framing notes, side context */
.callout {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,186,188,0.06), transparent 70%);
  font-size: .98rem;
  line-height: 1.6;
}
.callout .callout-label {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: .4rem;
}
.callout p { margin-bottom: .8em; max-width: none; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* CTA buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); color: var(--paper); }

/* ---------- column add system (events / workshops) ---------- */

/* Each "card-list" is a column. Jemma adds a new <li class="card"> at top. */
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.card {
  display: flex;
  gap: 1.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.card:last-child { border-bottom: 0; }
.card-date {
  flex: 0 0 70px;
  font-family: var(--serif);
  text-align: center;
  border-right: 1px solid var(--rule);
  padding-right: 1rem;
}
.card-date .day { font-size: 1.8rem; line-height: 1; display: block; }
.card-date .mo { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-fade); }
.card-body h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .25rem; }
.card-body .meta { font-size: .85rem; color: var(--ink-fade); margin-bottom: .5rem; }
.card-body p { font-size: .95rem; margin-bottom: .8rem; }
.card-body a.cta { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

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

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}
.footer-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .footer-wrap { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-fade); margin-bottom: 1rem; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; font-size: .9rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

.footer-meta {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--ink-fade);
}

/* newsletter */
.newsletter form { display: flex; gap: .5rem; margin-top: .5rem; }
.newsletter input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--rule); background: var(--paper); font-family: var(--sans); font-size: .9rem; }
.newsletter button { padding: .6rem 1rem; background: var(--ink); color: var(--paper); border: 0; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
.newsletter button:hover { background: var(--accent); }

/* ---------- utilities ---------- */
.lede { font-size: 1.15rem; max-width: 60ch; color: var(--ink-soft); margin-bottom: 2rem; }
.section-rule { height: 1px; background: var(--rule); margin: clamp(3rem, 6vw, 5rem) 0; }
.text-center { text-align: center; }

/* ---------- long-form article (essays, project writeups) ---------- */
.article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}
.article-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 56ch;
}
.article-meta {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-fade);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  font-weight: 600;
}
.article-body {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 400;
}
.article-body p { margin-bottom: 1.4em; max-width: none; }
.article-body p:first-of-type::first-letter {
  font-size: 3.2em;
  line-height: 0.9;
  float: left;
  padding: 0.1em 0.1em 0 0;
  font-weight: 500;
  color: var(--accent);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 3rem 0 1rem;
  color: var(--ink);
}
.article-body h2::before {
  content: '§ ';
  color: var(--accent);
  font-weight: 400;
}
.article-body figure {
  margin: 2.5rem -1rem;
  text-align: center;
}
.article-body figure img { width: 100%; height: auto; }
.article-body figcaption {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-fade);
  margin-top: .75rem;
  font-weight: 500;
}
.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; }
.article-bib {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}
.article-bib h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}
.article-bib p {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 0.6em;
  max-width: none;
}
.article-back {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 2rem;
  font-weight: 600;
}
.article-back:hover { color: var(--accent); }
