/* ============================================
   Carolyn Burchill, Artist site
   White, emerald accent, joyful, gallery clean.
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --ink: #0a0a0a;
  --ink-soft: #3d3d3d;
  --muted: #8a8a8a;
  --line: #ececec;

  /* Accent palette pulled from Carolyn's work */
  --green: #047857;
  --green-deep: #035c44;
  --green-soft: #ecfdf5;
  --pink: #ff3d7f;
  --yellow: #ffd60a;
  --sky: #4ea8de;

  --max: 1280px;

  --serif: "Instrument Serif", "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
a:hover { color: var(--green); border-bottom-color: var(--green); }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 36px; }
@media (max-width: 640px) { .container { padding: 0 22px; } }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 6px;
}
.brand:hover { border-bottom: none; color: var(--ink); }
.brand-mark {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  margin-bottom: 6px;
}
.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
}

/* Mobile header: shrink everything so the brand and nav fit together */
@media (max-width: 560px) {
  .header-inner { height: 60px; }
  .brand { font-size: 18px; gap: 4px; }
  .brand-mark { width: 7px; height: 7px; margin-bottom: 3px; }
  .nav { gap: 16px; }
  .nav a { font-size: 10.5px; letter-spacing: .08em; }
}
@media (max-width: 380px) {
  .brand { font-size: 16px; }
  .nav { gap: 12px; }
  .nav a { font-size: 10px; letter-spacing: .06em; }
}

/* ============================================
   HERO (about at the top)
   ============================================ */
.hero {
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 64px 0 80px; }
}

.hero-text { position: relative; z-index: 2; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin: 0 0 22px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow svg { width: 14px; height: 14px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
}
.hero-title em { font-style: italic; color: var(--green); }
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.6;
}
.hero-sub em {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Portrait composition */
.hero-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
}
.portrait-frame {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-soft);
  box-shadow: 0 24px 60px rgba(0,0,0,.10);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.portrait-decor.d1 { top: -16px; left: -8px; color: var(--green); width: 70px; }
.portrait-decor.d2 { bottom: -10px; right: -4px; color: var(--pink); width: 56px; }
.portrait-decor.d3 { top: 30%; left: -28px; color: var(--yellow); width: 36px; }
@media (max-width: 900px) {
  .portrait-decor.d3 { display: none; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--ink);
  color: var(--bg);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  align-items: center;
  /* no gap on the track itself, otherwise the -50% loop undershoots
     by half the gap and you see empty space before it repeats */
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 48px; /* gap between copies lives here, so loop is seamless */
}
.marquee-track svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.marquee-track .m-green { color: var(--green); }
.marquee-track .m-pink { color: var(--pink); }
.marquee-track .m-yellow { color: var(--yellow); }
.marquee-track .m-sky { color: var(--sky); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  border-radius: 999px;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============================================
   SECTION HEADS
   ============================================ */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-title em { font-style: italic; color: var(--green); }
.section-sub {
  color: var(--ink-soft);
  margin: 0 0 64px;
  font-size: 16px;
  max-width: 540px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-head .section-sub { margin: 0; max-width: 380px; text-align: right; }
@media (max-width: 720px) {
  .section-head { align-items: start; flex-direction: column; }
  .section-head .section-sub { text-align: left; }
}

/* Wavy hand-drawn underline anchored beneath the italic word in a section title */
.title-em {
  position: relative;
  display: inline-block;
}
.title-wave {
  position: absolute;
  left: 0;
  bottom: -0.32em;
  width: 100%;
  height: 0.28em;
  color: var(--pink);
  display: block;
  overflow: visible;
}

/* ============================================
   WORKS GRID
   Simple 3 column grid, square cards,
   full artwork shown (object-fit: contain)
   so nothing gets cropped.
   ============================================ */
.works { padding: 100px 0 120px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 36px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; gap: 40px; } }

.card { cursor: pointer; position: relative; }
.card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image > * { max-width: 100%; max-height: 100%; display: block; }
.card-image img {
  object-fit: contain;
  width: 100%; height: 100%;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-image img { transform: scale(1.04); }

/* Hover pill */
.card-image::after {
  content: "View, Buy print";
  position: absolute;
  top: 16px; right: 16px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.card:hover .card-image::after { opacity: 1; transform: translateY(0); }

.placeholder-art { width: 100%; height: 100%; object-fit: contain; }

.card-meta {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card-price {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: nowrap;
  font-weight: 500;
}
.card-medium {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   FROM THE STUDIO
   ============================================ */
.studio {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 90%, var(--green-soft) 0, transparent 32%),
    radial-gradient(circle at 92% 10%, #fff5f9 0, transparent 32%);
  position: relative;
}
.studio-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 760px) {
  .studio-head { grid-template-columns: 1fr; align-items: start; }
}
.studio-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 0;
}
.studio-title em { font-style: italic; color: var(--green); }
.studio-sub {
  color: var(--ink-soft);
  max-width: 360px;
  font-size: 15px;
  margin: 0;
}
@media (min-width: 761px) {
  .studio-sub { text-align: right; padding-bottom: 6px; }
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .studio-grid { grid-template-columns: 1fr; gap: 28px; }
}
.studio-card { margin: 0; position: relative; }
.studio-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 8px;
  position: relative;
}
.studio-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.studio-card:hover .studio-image img { transform: scale(1.04); }

.studio-card::before {
  content: "";
  position: absolute;
  top: -14px; left: -14px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,0.85) 2px, transparent 2.5px);
  background-size: 10px 10px;
}
.studio-card:nth-child(2)::before {
  background-color: var(--pink);
  left: auto; right: -14px;
}
.studio-card figcaption {
  padding: 16px 4px 0;
  font-size: 17px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .01em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { padding: 56px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-inner p { margin: 0; }
.footer-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 18px; color: var(--ink);
}
.footer-mark .footer-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
}
.muted { color: var(--muted); }
.muted a { color: var(--muted); border-bottom-color: transparent; }
.muted a:hover { color: var(--green); }

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal[aria-hidden="false"] { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  background: var(--bg);
  max-width: 940px; width: 100%;
  max-height: 92vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  border-radius: 4px;
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
  width: 38px; height: 38px;
  font-size: 22px; line-height: 1; cursor: pointer;
  color: var(--ink); z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--green); color: #fff; border-color: var(--green); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .modal-body { grid-template-columns: 1fr; } }

.modal-preview {
  background: var(--bg-soft);
  min-height: 360px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.modal-preview > * { width: 100%; height: 100%; display: block; object-fit: contain; }

.modal-details { padding: 48px 40px; }
.modal-details h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  margin: 8px 0 12px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.modal-desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0 0 30px;
  line-height: 1.6;
}
.modal-foot {
  font-size: 12px; color: var(--muted);
  margin-top: 18px;
  text-align: center;
  letter-spacing: .04em;
}

/* SIZE OPTIONS */
.size-options {
  border: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.size-options legend {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px; padding: 0;
  font-weight: 600;
}
.size-option {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  border-radius: 6px;
  transition: border-color .15s ease, background .15s ease;
}
.size-option:hover { border-color: var(--ink-soft); }
.size-option input { display: none; }
.size-option.selected {
  border-color: var(--green);
  background: var(--green-soft);
}
.size-option-label { font-size: 14px; }
.size-option-price { font-size: 15px; font-weight: 600; }

/* Spinner */
.btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#checkout-btn { width: 100%; padding: 18px 32px; }
