/* Bryony Hall Art — quiet frame, loud artwork.
   Layout: logo + nav bar, text-led hero beside the portrait, collections as uncropped mosaics. */
:root {
  --paper: #f8f6fb;      /* faint lilac white, from the logo's purple */
  --paper-deep: #efeaf6;
  --ink: #252a57;        /* Purr-fect Zen navy */
  --ink-soft: #545a85;
  --plum: #5b2e8f;       /* logo purple */
  --sea: #2c8a86;        /* logo teal */
  --coral: #ef6f5e;      /* Oceanity coral */
  --line: #ddd6ea;

  --font: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.3rem, 5.4vw, 3.9rem);

  --wrap: 72rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
}

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

a { color: var(--plum); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; max-width: 62ch; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

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

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}
.logo img { width: 210px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--coral); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid var(--plum);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.quiet { background: transparent; color: var(--plum); }
.btn.quiet:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Home hero */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}
.hero-text { display: grid; gap: 1.75rem; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero-photo img {
  width: 100%;
  border-radius: 1.25rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.tint { background: var(--paper-deep); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-soft); }

/* Home collection tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.tile { display: grid; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.75rem;
}
.tile span { font-size: var(--step-1); font-weight: 400; }
.tile:hover span { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Licensing call-out */
.callout .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.callout h2 { font-size: var(--step-3); margin-bottom: 0.75rem; }

/* Page intro (inner pages) */
.page-intro { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem); }
.page-intro .wrap { display: grid; gap: 1.5rem; }
.page-intro h1 { font-size: var(--step-4); }
.lede { font-size: var(--step-1); line-height: 1.5; font-weight: 300; }
.prose { display: grid; gap: 1.1rem; }
.note { font-size: var(--step--1); color: var(--ink-soft); }

/* Collections (licensing page) */
.collection { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.collection-head { display: grid; gap: 0.4rem; margin-bottom: 1.75rem; }
.collection-head h2 { font-size: var(--step-2); font-weight: 400; }
.collection-head p { color: var(--ink-soft); }
.mosaic { columns: 3 15rem; column-gap: 1rem; }
.mosaic img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  break-inside: avoid;
}

/* About */
.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-photo img { width: 100%; border-radius: 1rem; }
.about h2 { font-size: var(--step-2); font-weight: 400; margin-top: 1rem; }

/* Contact */
.contact-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  background: var(--paper-deep);
  max-width: 40rem;
}
.email {
  font-size: var(--step-2);
  font-weight: 400;
  word-break: break-word;
}
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; list-style: none; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e6f5; margin-top: 0; }
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 3rem;
}
.site-footer h2 { font-size: var(--step-0); font-weight: 600; margin-bottom: 0.5rem; }
.site-footer p { color: #c9c5e2; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: var(--step--1); color: #a9a5c8; grid-column: 1 / -1; }

@media (max-width: 860px) {
  .hero .wrap, .about .wrap, .callout .wrap, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 26rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-photo { max-width: 20rem; }
}
@media (max-width: 420px) {
  .logo img { width: 170px; }
  .nav { gap: 0.25rem 1.1rem; }
  .tiles { gap: 0.9rem; }
}

main.inner { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

/* Licensing page: mockup-led layout */
.lead-pair, .feature-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lead-pair img, .feature-pair img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.75rem; }
.lead-pair img { aspect-ratio: 2 / 3; }
.feature-pair img { aspect-ratio: 1; }
.feature { display: grid; gap: 1rem; }
.feature > img { width: 100%; border-radius: 0.75rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.split-side { display: grid; gap: 0.75rem; justify-items: start; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.work { margin: 0; display: grid; gap: 0.6rem; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0.6rem; }
.work figcaption { display: grid; line-height: 1.35; }
.work figcaption span { font-size: var(--step-0); }
.work figcaption small { font-size: var(--step--1); color: var(--ink-soft); }
.enquire .wrap { display: grid; gap: 1rem; justify-items: start; }
.enquire h2 { font-size: var(--step-3); }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .lead-pair, .feature-pair { gap: 0.6rem; }
  .work-grid { gap: 1.5rem 0.75rem; }
}

/* Handwritten headings, matched to the brush script in Bryony's portfolio */
:root { --font-script: "Momo Signature", "Segoe Script", "Brush Script MT", cursive; }
h1, h2 { font-family: var(--font-script); font-weight: 400; color: var(--plum); letter-spacing: 0; line-height: 1.2; }
.hero h1 { font-family: var(--font); font-weight: 300; color: var(--ink); line-height: 1.15; }
.site-footer h2 { font-family: var(--font); color: #fff; }
.work img { aspect-ratio: 1; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
.contact-form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.botcheck { display: none; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--sea); font-weight: 600; }
.form-status.error { color: #b3261e; font-weight: 600; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

/* Momo Signature is wider than Kaushan, so headings step down slightly */
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.hero h1 { font-size: var(--step-4); }
.section-head h2, .callout h2, .enquire h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }

/* Homepage: "See all" tile */
.tile-all-card {
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
  background: var(--plum);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}
.tile-all-text {
  font-family: var(--font-script);
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.25;
}
.tile-all:hover .tile-all-card { background: var(--ink); }
.tile-all:hover .tile-all-text { text-decoration: none; }

/* Footer headings in capitals */
.site-footer h2 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 600; }
.tile.tile-all:hover .tile-all-text { color: #fff; text-decoration: none; }
