/* ==========================================================================
   Fraley Atelier — fraleyatelier.com
   Plain, quiet, readable. Neutral light. No images, no scripts.
   ========================================================================== */

/* --- Inter, self-hosted, variable ---------------------------------------- */
/* Inter 4.1, rsms/inter GitHub release. SIL OFL 1.1 — see
   /assets/fonts/Inter-LICENSE-OFL.txt. Copied byte-for-byte from
   Website_photosensei_app. The only font source on this site. */
@font-face {
  font-family: "InterVariable";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --ground:   #FAFAF8;
  --text:     #1F1F1D;
  --muted:    #5C5C57;
  --hairline: #DEDED9;
  --link:     #2B4C7E;

  --font: "InterVariable", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --prose: 62ch;
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Layout -------------------------------------------------------------- */
main {
  max-width: var(--prose);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--pad-x) 2rem;
}

footer {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2rem var(--pad-x) 4rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- Type ---------------------------------------------------------------- */
h1 {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.5rem 0 0.5rem;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1rem;
}

footer p {
  margin: 0;
}

/* --- Links --------------------------------------------------------------- */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

h2 a {
  color: inherit;
  text-decoration: none;
}

h2 a:hover,
h2 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

footer a {
  color: inherit;
}
