/* =====================================================
   Ruth Kim Ceramics — design tokens
   ===================================================== */
:root {
  --bg:        #E9E5DC;   /* stone */
  --bg-alt:    #DFDAD0;   /* slightly deeper stone, for alt sections */
  --surface:   #D7D1C4;   /* placeholder "photo" fill */
  --ink:       #2A2823;   /* near-black, warm */
  --ink-soft:  #5B564C;   /* muted secondary text */
  --accent:    #71826F;   /* muted celadon green */
  --line:      #C6BFAF;   /* hairline dividers */

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

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

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 460;
  color: var(--ink);
  margin: 0;
}

a {
  color: inherit;
}

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

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

/* =====================================================
   Header
   ===================================================== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 460;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

/* =====================================================
   Hero
   ===================================================== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 10vw, 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  background: var(--surface);
}

.hero-kicker {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  max-width: 14ch;
}

.hero-lede {
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 20px 0 32px;
  font-size: 1.02rem;
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.15s ease;
}

.cta:hover { opacity: 0.6; }

/* =====================================================
   Gallery
   ===================================================== */
.gallery-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(72px, 10vw, 120px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(18px, 2.5vw, 32px);
}

.piece {
  margin: 0;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

.piece.tall { grid-row: span 2; }

.piece-image {
  flex: 1;
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.piece-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  font-size: 0.9rem;
}

.piece-name { color: var(--ink); }
.piece-meta { color: var(--ink-soft); white-space: nowrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .piece { grid-column: span 1; }
  .piece.tall { grid-row: span 1; }
}

/* =====================================================
   About
   ===================================================== */
.about-section {
  background: var(--bg-alt);
  padding: clamp(56px, 8vw, 100px) var(--gutter);
}

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface);
}

.about-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 18px;
}

.about-text p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 16px;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Contact
   ===================================================== */
.contact-section {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

.contact-section .section-note {
  margin-bottom: 28px;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.contact-social {
  display: block;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 40px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
