/* Creative Light LLC — site styles
   Plain CSS, no build step. Light and dark follow the system setting. */

:root {
  color-scheme: light dark;

  --bg: #f3f5f8;
  --bg-raised: #e6eaf0;
  --ink: #16202b;
  --ink-soft: #4b5563;
  --rule: #c9d0da;
  --accent: #8a560d;        /* lamp amber, dark enough for text on light */
  --accent-ink: #16202b;
  --focus: #1f5fbf;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3rem, 8vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a24;
    --bg-raised: #1b2531;
    --ink: #e8ecf1;
    --ink-soft: #aab4c2;
    --rule: #33404f;
    --accent: #f2b65a;
    --accent-ink: #121a24;
    --focus: #8ec2ff;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 100%;               /* respects the reader's text size */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

/* Skip link */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Layout */
.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}
.prose { max-width: var(--measure); }

/* Header */
.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.35rem;
  display: inline-block;
}
.site-nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: one photograph, then the headline */
.hero { padding-block: 0.5rem var(--space); }
.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-raised);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 1rem;
  max-width: 20ch;
}
.hero .lede {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--ink-soft);
  margin: 0;
}

/* Sections */
section { padding-block: 0 var(--space); }
section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
section p { margin: 0 0 1rem; }
section p:last-child { margin-bottom: 0; }

/* Gallery: a quiet mosaic, the vertical frame takes two rows */
.gallery {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.gallery li { margin: 0; }
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-raised);
}
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: auto; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
}
.contact-list li { margin-bottom: 0.5rem; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.site-foot p { margin: 0 0 0.4rem; }
.site-foot a { color: inherit; }

/* Secondary pages */
.page { padding-block: 1rem var(--space); }
.page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.page h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.35rem; }
.meta { color: var(--ink-soft); }
