/* seele-lab: warm cream, ink, terracotta. System fonts only, so the page
   looks the same offline and needs no build step.

   Responsive without breakpoints: every size and gap is a clamp() of the
   viewport width, so the page grows smoothly from a phone to a 4K screen,
   and the body fills the screen height so the footer sits at the bottom. */

:root {
  --cream: #F4F0E8;
  --ink: #141413;
  --soft: #3A3934;
  --muted: #6B6960;
  --line: #DDD6C8;
  --clay: #CC785C;
  --clay-deep: #A4573D;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);           /* side margin */
  --width: min(100% - 2 * var(--gutter), 1200px);
  --mark: clamp(84px, 3.5rem + 6vw, 200px);   /* logo size */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;           /* phones: the visible height, not behind the URL bar */
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font: clamp(16px, 0.9rem + 0.25vw, 19px)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Main column: centred on the page, and vertically in the space above the footer. */
.wrap {
  flex: 1;
  width: var(--width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 10vh, 140px) clamp(32px, 6vh, 80px);
}

/* Header: the hand-drawn mark, the name, one sentence. The negative margin
   lines the mark's rings up with the text (the SVG has 9% padding). */
.mark {
  display: block;
  width: var(--mark);
  height: var(--mark);
  margin: 0 0 clamp(20px, 3vw, 44px) calc(var(--mark) * -0.09);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 2rem + 6vw, 8rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(16px, 2vw, 32px);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2.5rem);
  line-height: 1.4;
  color: var(--soft);
  max-width: 36ch;
  text-wrap: balance;           /* even line lengths; older browsers just wrap */
  margin: 0;
}

h2 {
  font: 600 clamp(12px, 0.55rem + 0.3vw, 15px)/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: clamp(56px, 10vh, 140px) 0 8px;
}

/* Contact: one email address, in the serif of the lede. */
.contact {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 0.85rem + 0.8vw, 1.75rem);
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;      /* never wider than a narrow phone */
}

a { color: inherit; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

footer {
  width: var(--width);
  margin-inline: auto;
  padding-block: 0 clamp(24px, 4vh, 48px);
  font-size: clamp(13px, 0.75rem + 0.15vw, 15px);
  color: var(--muted);
}
footer .rule { height: 1px; background: var(--line); margin-bottom: clamp(16px, 2vh, 24px); }
