/* ==========================================================================
   kayl.ie — Kaylie Adams
   Warm & minimal. Palette pulled from the hand-lettered sheep logo:
   walnut wood, cream paper, soft wool, a touch of sage.
   ========================================================================== */

:root {
  --cream:   #FBF7F0;
  --paper:   #FFFFFF;
  --sand:    #F3EADC;
  --line:    #E7DCCB;
  --ink:     #2E2620;
  --muted:   #7C6E60;
  --walnut:  #5E4632;
  --tan:     #B98F63;
  --sage:    #7F8F70;
  --wool:    #EFE6D8;

  --shadow-sm: 0 1px 2px rgba(46, 38, 32, .06), 0 4px 12px rgba(46, 38, 32, .05);
  --shadow-md: 0 2px 6px rgba(46, 38, 32, .07), 0 16px 40px rgba(46, 38, 32, .09);

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

  --wrap: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--walnut); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tan); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.005em; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* Left-aligned reading column — keeps every page sharing one left edge. */
.measure { max-width: 660px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tan);
  margin: 0 0 1rem;
}

.lede { font-size: clamp(1.08rem, 2vw, 1.24rem); color: var(--muted); line-height: 1.65; }

/* --- Placeholder marker -------------------------------------------------
   Every bit of copy still waiting on real content from Kaylie is wrapped
   in .ph — search the HTML for "ph" (or just look for the dashed underline
   in the browser) to find everything that needs replacing.
   Delete this rule once the site is filled in.
   ---------------------------------------------------------------------- */
.ph {
  background: rgba(185, 143, 99, .10);
  border-bottom: 1px dashed rgba(185, 143, 99, .55);
  border-radius: 2px;
  padding: 0 .15em;
}

/* --- Skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1.1rem; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px; flex-wrap: wrap; padding-block: .5rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--ink); text-decoration: none;
}
.brand img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 0 0 1px var(--line);
  flex: none;
}
/* Hand-lettered wordmark. Pacifico is the closest web font to the thick,
   rounded brush lettering painted on the sign in the logo. */
.brand-name {
  font-family: "Pacifico", "Brush Script MT", "Snell Roundhand", cursive;
  font-size: clamp(1.75rem, 4.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
  color: var(--walnut);
  /* Pacifico carries a deep descender — pull the word back onto the baseline
     so the nav bar doesn't grow around it. */
  transform: translateY(-.06em);
}

.nav-links { display: flex; gap: clamp(.75rem, 3vw, 1.9rem); align-items: center; }
.nav-links a {
  font-size: .93rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: .35rem 0; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--tan); border-radius: 2px;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  padding: .78rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--walnut); color: var(--cream); }
.btn-primary:hover { background: #4C3826; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--tan); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.hero h1 { margin-bottom: .35em; }
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transform: rotate(-1.2deg);
}
.hero-art img { width: 100%; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--sand); border-block: 1px solid var(--line); }

.page-head { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }

/* --- Cards -------------------------------------------------------------- */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none; color: inherit; display: block;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card-icon {
  width: 38px; height: 38px; margin-bottom: 1rem;
  color: var(--tan);
}
.card-icon svg { width: 100%; height: 100%; }

/* --- About -------------------------------------------------------------- */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .about-grid { grid-template-columns: 320px 1fr; align-items: start; }
}

.portrait {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--wool);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  position: sticky; top: 96px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .drop {
  text-align: center; padding: 1.5rem;
  color: var(--muted); font-size: .88rem; line-height: 1.5;
}

.facts { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); }
.facts li {
  display: grid; gap: .15rem .75rem; padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) {
  .facts li { grid-template-columns: 150px 1fr; align-items: baseline; }
}
.facts dt, .facts .k {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tan);
}
.facts .v { color: var(--ink); }

/* --- Gallery ------------------------------------------------------------ */
/* True masonry via multi-column — photos keep their own proportions,
   no awkward gaps when portrait and landscape shots sit side by side. */
.gallery { columns: 3 230px; column-gap: 1rem; }

.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--wool);
  break-inside: avoid; margin: 0 0 1rem;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem;
}
.shot.tall { aspect-ratio: 3 / 4; }
/* A real photo sets its own height (from the img width/height attributes).
   min-height is a safety net so a tile can never collapse to a line if an
   image is missing its dimensions or fails to load. */
.shot:has(img) { aspect-ratio: auto; padding: 0; min-height: 8rem; }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(46,38,32,.62), rgba(46,38,32,.28) 45%, rgba(46,38,32,0));
  color: #fff; font-size: .84rem; padding: 2.4rem .9rem .75rem; text-align: left;
  text-shadow: 0 1px 2px rgba(46,38,32,.5);
}

/* --- Contact ------------------------------------------------------------ */
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .6rem 1.15rem;
  font-size: .93rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--tan); transform: translateY(-1px); }
.chip svg { width: 17px; height: 17px; color: var(--muted); }

/* --- Contact form ------------------------------------------------------- */
.form { margin-top: 2rem; max-width: 560px; }
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--tan); margin-bottom: .45rem;
}
.field input,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none; border-color: var(--tan);
  box-shadow: 0 0 0 3px rgba(185, 143, 99, .18);
}
/* Honeypot — hidden from people, irresistible to bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form button[type="submit"] { border: 0; cursor: pointer; font-family: var(--sans); }
.form button[disabled] { opacity: .6; cursor: default; transform: none; }

.form-status { font-size: .93rem; margin: 0; }
.form-status[data-state="error"] { color: #A2432F; }
.form-status[data-state="ok"] { color: var(--sage); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand);
  padding: 2.5rem 0;
}
/* No cream seam when a tinted section runs straight into the footer. */
main > .section-tint:last-child { border-bottom: none; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: .88rem; color: var(--muted);
}
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* --- 404 ---------------------------------------------------------------- */
.center-stage {
  min-height: 62vh; display: grid; place-items: center; text-align: center;
  padding: 4rem 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
