/* -----------------------------------------------------------
   Dom Gunn-Taylor, personal site
   Soft modern: warm neutral background, serif display type for
   headings/name, sans body copy, one terracotta accent.
   Single page, mobile-first.
----------------------------------------------------------- */

:root {
  --bg: #faf7f2;
  --bg-raised: #f3ede4;
  --text: #211c17;
  --muted: #6b6259;
  --muted-2: #8c8377;
  --accent: #c45a3a;
  --accent-ink: #9c4429;
  --border: #e4dcd0;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 42rem;
  --measure-wide: 68rem;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-ink);
}

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

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0.5rem;
}

.mark {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.mark:hover,
.mark:focus-visible {
  color: var(--accent-ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-ink);
}

/* ---------- Layout ---------- */

main {
  display: block;
}

.hero {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 2.25rem;
}

.hero-photo {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-text {
  max-width: 38rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  margin-bottom: 0.85rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--accent-ink);
  margin-bottom: 1.4rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
}

@media (min-width: 760px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 5.5rem;
    padding-bottom: 5rem;
    gap: 3.5rem;
  }

  .hero-photo {
    max-width: 17rem;
    flex-shrink: 0;
    margin: 0;
  }
}

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.75rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  margin-bottom: 1.1rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 0.9rem;
}

#photos.section {
  max-width: var(--measure-wide);
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
  }
}

.photo {
  display: block;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-raised);
  border-radius: 3px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo:hover .photo-frame img,
.photo:focus-visible .photo-frame img {
  transform: scale(1.045);
}

.photo-caption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.gallery-note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* ---------- Contact ---------- */

.contact-links {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.contact-links a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--border);
  display: inline-block;
  padding-bottom: 0.15rem;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  color: var(--muted-2);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding-top: 3.5rem;
  }
}
