/* ==========================================================================
   Jasmine Simpson Artist — stylesheet
   Palette drawn from stoneware clay bodies and cobalt glaze, in reference
   to the artist's Stoke-on-Trent ceramics practice and blue-and-white work.
   ========================================================================== */

:root {
  /* colour */
  --bisque:        #E8DFCE; /* unfired stoneware — page background */
  --bisque-dark:    #DCD0B8;
  --paper:          #F8F3E8; /* slip-cast white — card/panel background */
  --charcoal:       #241F1B; /* kiln smoke — primary text */
  --charcoal-soft:  #574E42; /* secondary text */
  --cobalt:         #2B4A6B; /* glaze blue — primary accent */
  --cobalt-deep:    #16283A; /* fired cobalt — dark sections */
  --cobalt-pale:    #CBD9E2; /* glaze wash */
  --clay-line:      #B7A886; /* hairline / dividers */
  --ochre:          #92702F; /* biscuit — sparing use, dates/labels */

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* layout */
  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bisque);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

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

/* ---------------------------------------------------------------------- */
/* Backstamp mark — used as the site logo, a nod to a ceramicist's maker's
   stamp pressed into the base of a piece. */

.stamp {
  --s: 46px;
  width: var(--s);
  height: var(--s);
  border: 1.4px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  transform: rotate(-6deg);
}
.stamp span { transform: rotate(6deg); }

/* ---------------------------------------------------------------------- */
/* Hero banner photo — full-width image at the top of the homepage */

.hero-banner {
  width: 100%;
  height: clamp(280px, 46vw, 560px);
  overflow: hidden;
  background: var(--cobalt-deep);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Willow-motif divider — recurring signature element: a small ornament
   echoing the backstamp mark, used to separate the name from the tagline. */

.willow-divider {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 auto;
  color: var(--cobalt);
  opacity: 0.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(232, 223, 206, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--clay-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--charcoal-soft);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--charcoal-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--cobalt);
  border-bottom-color: var(--cobalt);
}

.header-social {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.header-social a {
  color: var(--charcoal-soft);
  transition: color 0.15s ease;
}
.header-social a:hover { color: var(--cobalt); }
.header-social svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--charcoal);
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--clay-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--pad);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav a { width: 100%; padding: 0.9rem 0; border-bottom: 1px solid var(--clay-line); }
  .header-social { padding: 1rem 0 1.3rem; }
}

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

.hero {
  padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.hero .eyebrow { display: block; margin-bottom: 1.1rem; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  text-transform: uppercase;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--charcoal-soft);
  max-width: 34ch;
  margin: 1.1rem auto 0;
}

.hero .willow-divider { margin-top: 2.5rem; }

/* ---------------------------------------------------------------------- */
/* Section scaffolding */

section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  text-transform: uppercase;
}

.section-head .count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--charcoal-soft);
}

/* ---------------------------------------------------------------------- */
/* Gallery grid — mixed portrait / landscape tiles like a hung show */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

.tile {
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bisque-dark);
}
.tile.p { grid-column: span 2; aspect-ratio: 3/4; }
.tile.l { grid-column: span 3; aspect-ratio: 4/3; }
.tile.w { grid-column: span 4; aspect-ratio: 16/9; }

@media (max-width: 900px) {
  .tile, .tile.p, .tile.l, .tile.w { grid-column: span 3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.p, .tile.l, .tile.w { grid-column: span 1; aspect-ratio: 3/4; }
}

.tile img { width: 100%; height: 100%; object-fit: cover; }

.placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
  background:
    repeating-linear-gradient(135deg, rgba(43,74,107,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--bisque-dark), var(--bisque));
  border: 1px dashed var(--clay-line);
}
.placeholder-art .ph-icon { color: var(--cobalt); opacity: 0.55; width: 26px; height: 26px; }
.placeholder-art .ph-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(to top, rgba(22,40,58,0.82), transparent);
  color: var(--paper);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tile:hover .tile-caption,
.tile:focus-within .tile-caption { opacity: 1; transform: translateY(0); }
.tile-caption .t-title { font-family: var(--font-display); font-size: 0.95rem; }
.tile-caption .t-meta { font-family: var(--font-mono); font-size: 0.65rem; opacity: 0.8; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------------- */
/* Pull quote */

.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  margin: 0 0 1.2rem;
}
.quote-block cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}

/* ---------------------------------------------------------------------- */
/* Mailing list band */

.band {
  background: var(--cobalt-deep);
  color: var(--paper);
}
.band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}
.band h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  text-transform: uppercase;
  margin: 0;
}
.band p { color: var(--cobalt-pale); margin: 0.3rem 0 0; font-size: 0.92rem; }

.subscribe-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  background: transparent;
  border: 1px solid rgba(248,243,232,0.4);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border-radius: var(--radius);
  min-width: 240px;
}
.subscribe-form input[type="email"]::placeholder { color: rgba(248,243,232,0.55); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cobalt);
  color: var(--paper);
  border: 1px solid var(--cobalt);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: transparent; color: var(--cobalt); }
.band .btn { background: var(--paper); color: var(--cobalt-deep); border-color: var(--paper); }
.band .btn:hover { background: transparent; color: var(--paper); }

.form-note { font-size: 0.78rem; color: var(--cobalt-pale); margin-top: 0.6rem; width: 100%; }

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

.site-footer {
  background: var(--charcoal);
  color: var(--bisque);
  padding: 3rem 0 2rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .stamp { color: var(--bisque); }
.footer-brand { display: flex; gap: 0.9rem; align-items: center; }
.footer-brand .brand-name { text-transform: uppercase; font-family: var(--font-display); font-size: 1rem; }
.footer-brand .brand-name small { color: #A69A87; }

.footer-contact a { text-decoration: none; color: var(--bisque); font-size: 0.92rem; }
.footer-contact a:hover { color: var(--cobalt-pale); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--bisque); }
.footer-social a:hover { color: var(--cobalt-pale); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 2.2rem auto 0;
  padding: 1.1rem var(--pad) 0;
  border-top: 1px solid #3a342c;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: #8d8271;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Page header (non-home pages) */

.page-header {
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--clay-line);
}
.page-header h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  text-transform: uppercase;
  margin-top: 0.6rem;
}
.page-header .lede {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--charcoal-soft);
  font-size: 1.1rem;
  max-width: 46ch;
}

/* ---------------------------------------------------------------------- */
/* Portfolio collections */

.collection-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1.6rem 0 0.4rem;
}
.collection-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--charcoal-soft);
  border: 1px solid var(--clay-line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.collection-nav a:hover { border-color: var(--cobalt); color: var(--cobalt); }

.collection {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  scroll-margin-top: 90px;
  border-bottom: 1px solid var(--clay-line);
}
.collection:last-of-type { border-bottom: none; }

.collection-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .collection-intro { grid-template-columns: 1fr; gap: 1rem; }
}
.collection-intro .cnum {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ochre);
  letter-spacing: 0.08em;
}
.collection-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
}
.collection-intro .meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  display: block;
}
.collection-intro p { color: var(--charcoal-soft); max-width: 60ch; }

/* ---------------------------------------------------------------------- */
/* About page */

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-portrait { position: sticky; top: 100px; }
.about-portrait .placeholder-art { aspect-ratio: 3/4; border-radius: var(--radius); }
@media (max-width: 820px) { .about-portrait { position: static; } }

.statement blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 1.3rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--cobalt);
  color: var(--charcoal);
}
.statement .signed {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  margin-bottom: 2.2rem;
}
.statement .bio p { color: var(--charcoal-soft); }

.cv {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--clay-line);
}
.cv h2 { text-transform: uppercase; font-size: 1.4rem; margin-bottom: 1.6rem; }
.cv-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--clay-line);
}
@media (max-width: 600px) { .cv-item { grid-template-columns: 1fr; gap: 0.3rem; } }
.cv-item .date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ochre);
  letter-spacing: 0.03em;
}
.cv-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.cv-item p { color: var(--charcoal-soft); font-size: 0.94rem; margin: 0; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .stamp { margin-bottom: 1.4rem; }
.contact-info h2 { font-size: 1.7rem; text-transform: uppercase; }
.contact-info a.email {
  display: inline-block;
  margin: 0.6rem 0 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1px solid var(--cobalt);
}
.contact-info .footer-social a { color: var(--charcoal); }
.contact-info .footer-social a:hover { color: var(--cobalt); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--clay-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.3rem);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bisque);
  border: 1px solid var(--clay-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.field input:focus, .field textarea:focus { border-color: var(--cobalt); }
.field textarea { min-height: 140px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .two-col { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--cobalt);
  display: none;
}
.form-status.show { display: block; }

/* ---------------------------------------------------------------------- */
/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 40, 58, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 560px; width: 100%; text-align: center; color: var(--paper); }
.lightbox-inner .placeholder-art { aspect-ratio: 3/4; margin: 0 auto 1rem; max-width: 360px; border-color: rgba(248,243,232,0.3); background: rgba(248,243,232,0.06); }
.lightbox-inner .placeholder-art .ph-label { color: var(--cobalt-pale); }
.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.05em;
}

/* utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
