/* ---------------------------------------------
   Amy Ren — Personal Site
   Palette: wine red / cream, warm & understated
--------------------------------------------- */

:root {
  --maroon: #6e2436;
  --maroon-dark: #4a1a27;
  --maroon-soft: #8a3347;
  --cream: #faf5ec;
  --cream-deep: #f1e6d6;
  --ink: #2b211f;
  --ink-soft: #6b5c56;
  --gold: #b08a4e;
  --line: rgba(43, 33, 31, 0.12);

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--maroon-dark);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--maroon);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--maroon);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 18px;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 22px;
  color: var(--maroon-dark);
}

.hero p.subtitle {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--maroon);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--maroon-dark);
}

.btn-outline {
  border-color: var(--maroon);
  color: var(--maroon);
  background: transparent;
}

.btn-outline:hover {
  background: var(--maroon);
  color: var(--cream);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero-photo {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(155deg, var(--cream-deep) 0%, #e7d5c0 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(110, 36, 54, 0.25);
  border-radius: 3px;
}

.hero-photo span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--maroon-soft);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- Section shell ---------- */

section.block {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-head .tag {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
  margin: 0 0 10px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0;
  color: var(--maroon-dark);
}

.section-head .view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon);
  white-space: nowrap;
  border-bottom: 1px solid var(--maroon);
  padding-bottom: 2px;
}

/* ---------- Galleries ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery.art-gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(74, 26, 39, 0.12);
}

.card-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cream-deep), #ddd0c3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.card-body {
  padding: 20px 22px 24px;
}

.card-body .label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.card-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Art gallery: square tiles, image-forward */

.art-tile {
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, var(--cream-deep), #e2cdb8);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.art-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(74, 26, 39, 0.12);
}

.art-tile span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--maroon-dark);
  font-size: 0.85rem;
  background: rgba(250, 245, 236, 0.75);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ---------- Philosophy (plain text) ---------- */

.philosophy .section-head {
  margin-bottom: 32px;
}

.philosophy-text {
  max-width: 68ch;
}

.philosophy-text p {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 20px;
}

.philosophy-text p:last-child {
  margin-bottom: 0;
}

.philosophy-text .lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--maroon-dark);
  line-height: 1.5;
}

/* ---------- Footer / contact bar ---------- */

footer.contact-bar {
  background: var(--maroon-dark);
  color: var(--cream);
  padding: 48px 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-inner .name {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.contact-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-links a {
  font-size: 0.94rem;
  color: var(--cream);
  opacity: 0.9;
  border-bottom: 1px solid rgba(250, 245, 236, 0.35);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact-links a:hover {
  opacity: 1;
  border-color: var(--cream);
}

.contact-copyright {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .gallery,
  .gallery.art-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 16px 20px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero {
    padding: 56px 0 56px;
  }

  section.block {
    padding: 56px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .gallery,
  .gallery.art-gallery {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
