/* ============================================================
   alexwormuth.com — shared styles for index.html + contact.html
   ============================================================ */

:root {
  /* crisp near-white palette with a warm clay accent */
  --bg:        #ffffff;
  --fg:        #18181b;
  --muted:     #71717a;
  --line:      #e8e8ea;
  --accent:    #a6492a;   /* terracotta / clay — links + button */
  --maxw:      640px;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #0f0f10;
    --fg:     #ededee;
    --muted:  #9a9aa2;
    --line:   #262629;
    --accent: #e08b5c;   /* lighter clay for dark bg */
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { width: 100%; }

/* Narrow reading column for text sections */
.col {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.hero { padding-top: 13vh; }
.tail { padding-bottom: 12vh; }

/* ---------- Split hero (home page) ---------- */
/* MOBILE default: image full-width on top, content underneath */
.split { width: 100%; }
.hero-media img {
  display: block;
  width: 100%;
  height: 30vh;            /* rectangular on mobile so the text isn't pushed off-screen */
  object-fit: cover;
  object-position: 50% 20%;  /* trims a little off the top, more off the bottom; keeps the face */
}
.hero-content { padding: 8vh 24px 10vh; }
.content-inner { max-width: 480px; }

/* DESKTOP: image = left half (full height), content = right half */
@media (min-width: 860px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
  }
  .hero-media {
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .hero-media img {
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
  }
  .hero-content {
    display: flex;
    align-items: center;
    padding: 8vh 6vw;
  }
  .content-inner { max-width: 460px; }
}

/* ---------- Headings ---------- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 0 0 12px;
}
.tagline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 3.2vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 40px;
}

/* ---------- Body copy ---------- */
.bio p { margin: 0 0 20px; max-width: 46ch; }
.bio a,
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.bio a:hover,
.prose a:hover { text-decoration-thickness: 2px; }
.lead { color: var(--muted); margin: 0 0 36px; max-width: 46ch; }

/* ---------- Image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;     /* MOBILE: full-width, stacked */
  gap: 6px;
  margin: 60px 0;
}
.gallery img,
.gallery .ph {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);   /* DESKTOP: large 3-up band */
    gap: 16px;
    max-width: 1080px;
    margin: 88px auto;
    padding-inline: 24px;
  }
  .gallery img,
  .gallery .ph {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }
}

/* dashed placeholder shown until a real image is dropped in */
.ph {
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

/* ---------- Section label ---------- */
.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Buttons + action row ---------- */
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.btn,
button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn:hover,
button:hover { opacity: 0.88; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* icon-only link (e.g. LinkedIn) */
.icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  transition: color 0.15s ease;
}
.icon-link:hover { color: var(--accent); }
.icon-link svg { width: 24px; height: 24px; fill: currentColor; }

/* back link (contact page) */
.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 44px;
}
.back:hover { color: var(--fg); }
.back .arrow { transition: transform 0.15s ease; }
.back:hover .arrow { transform: translateX(-3px); }

/* ---------- Divider ---------- */
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}

/* ---------- Contact form ---------- */
form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
label { font-size: 0.82rem; color: var(--muted); margin-bottom: -9px; letter-spacing: 0.01em; }
input, textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 130px; }
form button { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
