/* ==========================================================================
   Ashley E Design — ashleyelizabeth.design
   One stylesheet, vanilla CSS, mobile-first.
   ========================================================================== */

:root {
  --paper: #faf9f7;
  --ink: #1c1b18;
  --muted: #71706a;
  --hairline: #e6e3dc;
  --accent: #8c4a2f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

/* ---- Skip link ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.skip-link:focus { left: 0; }

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

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong { font-weight: 600; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

/* ---- Page intro --------------------------------------------------------- */

.page-intro {
  padding: 3.5rem 0 2.5rem;
}

.page-intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.page-intro .kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.page-intro p { max-width: var(--measure); }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---- Home hero ---------------------------------------------------------- */

.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero .tagline {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 auto 1.5rem;
}

.hero p {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--muted);
}

/* ---- Masonry-style curated grid (home) ---------------------------------- */

.mosaic {
  columns: 1;
  column-gap: 1.5rem;
  padding-bottom: 3rem;
}

.mosaic figure {
  margin: 0 0 1.5rem;
  break-inside: avoid;
}

.mosaic a {
  display: block;
  text-decoration: none;
}

.mosaic img {
  width: 100%;
  border: 1px solid var(--hairline);
}

.mosaic figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
}

.mosaic .title {
  font-style: italic;
  font-size: 0.95rem;
}

.mosaic .cat {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.3em;
  white-space: nowrap;
}

.mosaic a:hover .title { color: var(--accent); }

@media (min-width: 34rem)  { .mosaic { columns: 2; } }
@media (min-width: 58rem)  { .mosaic { columns: 3; } }

/* ---- Sections & galleries ----------------------------------------------- */

.section {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--hairline);
}

.section:first-of-type { border-top: 0; }

.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.5rem 0 0.25rem;
}

.section > .section-note,
.section > p {
  max-width: var(--measure);
}

.section-note { color: var(--muted); }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  margin-top: 2rem;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  border: 1px solid var(--hairline);
}

.gallery figcaption {
  padding-top: 0.45rem;
  font-size: 0.9rem;
}

.gallery .title { font-style: italic; }

.gallery .meta {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

@media (min-width: 34rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery--wide { grid-template-columns: 1fr; }
@media (min-width: 34rem) { .gallery--wide { grid-template-columns: repeat(2, 1fr); } }

.gallery--tight { gap: 1rem; }
@media (min-width: 34rem) { .gallery--tight { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 58rem) { .gallery--tight { grid-template-columns: repeat(4, 1fr); } }

.banner {
  margin: 2rem 0 1.5rem;
}

.banner img {
  width: 100%;
  border: 1px solid var(--hairline);
}

.see-more {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- Two-column media/text ---------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.split img { border: 1px solid var(--hairline); }

/* ---- Resume lists (about) ----------------------------------------------- */

.resume h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.5rem 0 0.75rem;
}

.resume ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.resume li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
}

.resume .when {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
}

@media (min-width: 40rem) {
  .resume li {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;
  }
  .resume .when { padding-top: 0.3em; }
}

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

.contact-email {
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  font-style: italic;
}

.social-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.social-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 26rem;
}

.social-list a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: 3rem;
}

.site-footer .wrap {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-footer a:hover { color: var(--accent); }
