/* ---------- Font (self-hosted) ---------- */
@font-face {
  font-family: "Libre Caslon Text";
  src: url("libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("libre-caslon-text-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Colours & sizes: change here ---------- */
:root {
  --sand:  #ece4d9;
  --ink:   #55341c;   /* brown */
  --muted: #86593a;
  --line:  #cbbfae;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --edge:  clamp(1.25rem, 4vw, 3.5rem);
  --gap:   clamp(1rem, 2.5vw, 2.5rem);
  --space: clamp(5rem, 12vw, 10rem);   /* space between sections */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  font-variant-ligatures: no-common-ligatures;
}

main, .bar, .foot { padding-left: var(--edge); padding-right: var(--edge); }

h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.75rem; }
p  { margin: 0 0 1em; max-width: 58ch; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

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

section { margin-top: var(--space); }

/* ---------- Top bar ---------- */
.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}
.bar nav { display: flex; gap: 1.5rem; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { margin-top: clamp(1.5rem, 4vw, 3rem); }

.wordmark {
  font-size: clamp(6rem, 30vw, 26rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  margin-top: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hero-text  { grid-column: 1 / 5; padding-top: 1rem; }
.hero-main  { grid-column: 5 / 10; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 75%; width: 100%; }
.hero-side  { grid-column: 10 / 13; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; margin-top: 45%; }

.lead { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; margin-bottom: 2rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}
.button:hover { background: var(--ink); color: var(--sand); }

/* ---------- About / definition ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: center;
}
.about-img  { grid-column: 1 / 5; filter: grayscale(1); }
.definition { grid-column: 6 / 12; }

.term { font-size: clamp(3rem, 7vw, 6rem); line-height: 1; margin: 0; letter-spacing: -0.03em; }
.phon { font-size: 0.32em; color: var(--muted); letter-spacing: 0; }
.pos  { color: var(--muted); margin: 0.75rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.meaning { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.4; max-width: 30ch; }
.note { color: var(--muted); }

/* ---------- Collage ---------- */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: start;
}
.collage img { width: 100%; object-fit: cover; }
.c1 { grid-column: 2 / 6;  aspect-ratio: 3 / 4; }
.c2 { grid-column: 7 / 10; aspect-ratio: 1; margin-top: 35%; }
.c3 { grid-column: 10 / 13; aspect-ratio: 1; margin-top: 110%; grid-row: 1; }

.small { font-size: 0.95rem; color: var(--muted); }

/* ---------- Beans ---------- */
.beans {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: end;
}
.beans img { grid-column: 1 / 6; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.beans div { grid-column: 7 / 12; padding-bottom: 1rem; }

/* ---------- Events ---------- */
.events {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: start;
}
.events-text { grid-column: 1 / 7; }
.events img  { grid-column: 8 / 13; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.steps li::before { content: counter(step); color: var(--muted); }
.steps p { margin: 0; }
.steps strong { font-weight: 400; font-style: italic; }

/* ---------- Book ---------- */
.book { text-align: center; padding-bottom: var(--space); }
.book p { margin: 0 auto 2rem; color: var(--muted); }
.mail {
  display: inline-block;
  font-size: clamp(1.9rem, 6.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.insta { display: block; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}
.foot a { text-decoration: none; }

/* ---------- Tablet & phone ---------- */
@media (max-width: 800px) {
  .hero-text  { grid-column: 1 / -1; margin-bottom: 2.5rem; }
  .hero-main  { grid-column: 1 / 9; }
  .hero-side  { grid-column: 9 / 13; margin-top: 60%; }

  .about-img  { grid-column: 1 / 9; margin-bottom: 2.5rem; }
  .definition { grid-column: 1 / -1; }

  .c1 { grid-column: 1 / 8; }
  .c2 { grid-column: 8 / 13; margin-top: 50%; }
  .c3 { grid-column: 4 / 11; grid-row: 2; margin-top: 2rem; }

  .beans img, .beans div { grid-column: 1 / -1; }
  .beans div { padding-top: 2rem; }

  .events-text { grid-column: 1 / -1; }
  .events img  { grid-column: 3 / 13; margin-top: 2.5rem; }
}

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