/* Kiekie — public landing page.
 *
 * Same ground as the archive: granite ink, bone text, one vygie accent.
 * The only colour on the page lives in the drawing (the flowers and the sun
 * on the print); the text stays quiet. Magenta in the UI appears only on the
 * one link and on focus. Serif for the voice, system sans for the reading.
 */

:root {
  --ink:        #171A1C;
  --ink-raise:  #212629;
  --line:       #333A3E;
  --bone:       #E8E4DC;
  --bone-dim:   #A4A9AB;   /* nudged up from #9AA0A2 for long body copy */
  --vygie:      #C2407A;
  --vygie-soft: #E07AA8;   /* link text: magenta that clears AA on ink */
  --veld:       #B8892F;

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  /* a faint warm light falling from the upper right, where the drawing sits */
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(184, 137, 47, .07), transparent 70%),
    var(--ink);
}

h1, h2, p, ul, figure { margin: 0; }

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

.skip {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  padding: var(--space-2) var(--space-3);
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: var(--space-3); }

/* ── masthead ─────────────────────────────────────────────── */

.masthead {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-5) var(--gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--bone);
}
.brand img { display: block; width: 32px; height: 32px; }

/* ── page grid ────────────────────────────────────────────── */

.page {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "art"
    "invite"
    "more";
  align-content: start;
  row-gap: var(--space-5);
}

.intro { grid-area: intro; }
.art   { grid-area: art; }
.more  { grid-area: more; }
.invite { grid-area: invite; }

@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
      "intro art"
      "more  invite";
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: var(--space-7);
    row-gap: var(--space-6);
    padding-top: var(--space-7);
  }
  .art { align-self: center; }
  .invite { margin-top: 0; align-self: start; }
}

/* ── intro ────────────────────────────────────────────────── */

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  color: var(--bone);
  max-width: 14ch;
  text-wrap: balance;
}

.lede {
  margin-top: var(--space-4);
  max-width: 34em;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--bone-dim);
}

/* ── drawing ──────────────────────────────────────────────── */

.art svg {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 899px) {
  .art svg { max-width: 440px; }
}

.lifted {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: lift 1.4s cubic-bezier(.2, .7, .2, 1) .2s both;
}

@keyframes lift {
  from { transform: translateY(46px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── what it does ─────────────────────────────────────────── */

.points {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

@media (min-width: 600px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
}

.points li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.points h2,
.invite h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--bone);
}

.points p {
  margin-top: var(--space-1);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bone-dim);
}

/* ── invitation ───────────────────────────────────────────── */

.invite {
  align-self: start;
  padding-left: var(--space-4);
  border-left: 2px solid var(--veld);
  max-width: 36em;
}

.invite p {
  margin-top: var(--space-2);
  color: var(--bone-dim);
}

.invite .signin { margin-top: var(--space-4); }

.signin a {
  color: var(--bone);
  text-decoration: none;
}

.signin a span {
  color: var(--vygie-soft);
  text-decoration: underline;
  text-decoration-color: var(--vygie);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.signin a span::after { content: " \2192"; }

.signin a:hover span {
  color: var(--bone);
  text-decoration-thickness: 2px;
}

/* ── footer ───────────────────────────────────────────────── */

.foot {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-5) var(--gutter) var(--space-6);
}

.foot p {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--bone-dim);
}

@media (prefers-reduced-motion: reduce) {
  .lifted { animation: none; }
}
