/* ---------- Web fonts (Baskervville — Hayley's brand font) ---------- */
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/Baskervville-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #2a2a2a;
  --ink-soft: #5a5a5a;
  --ink-muted: #9a9a9a;
  --rule: #e5e5e5;
  --accent: #b8b3d6;            /* the pale lavender footer strip */
  --max-w: 1200px;
  --gutter: 24px;
  --font-display: "Baskervville", "Times New Roman", Georgia, serif;
  --font-body: "Baskervville", "Times New Roman", Georgia, serif;
  --letter-spacing-display: 0.22em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page {
  min-height: calc(100vh - 60px);
  padding-top: 100px;
  padding-bottom: 120px;
}

/* ---------- Display type / wordmark ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-display);
  text-transform: uppercase;
  color: var(--ink);
}

h1.display { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.15; }
h2.display { font-size: clamp(22px, 2.8vw, 36px); line-height: 1.2; }
h3.display { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.3; }

.section-title {
  text-align: center;
  margin: 80px auto 48px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  height: 72px;
  padding: 0 var(--gutter);
}

.nav a {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 12px;
  top: 18px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 120px 24px 80px;
  margin-bottom: 40px;
  overflow: hidden;
  isolation: isolate;
}

/* B&W Mornington Peninsula coastline as hero backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/mornington-cliffs.jpg') center/cover no-repeat;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  z-index: -2;
}

/* Soft white veil so the portrait + title still read */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.65) 100%);
  z-index: -1;
}

.hero-title {
  font-family: var(--font-display);
  color: #2a2a2a;
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  line-height: 1;
}

.hero-title .line-1 {
  font-size: clamp(32px, 6.2vw, 76px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 0.22em;          /* optical-balance the tracking */
  opacity: 0;
  animation: heroRise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}

.hero-title .line-2 {
  font-size: clamp(22px, 3.6vw, 38px);
  letter-spacing: 0.05em;
  font-weight: 400;
  color: #4a4a4a;
  opacity: 0;
  animation: heroRise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
}
.hero-title .line-2 em {
  font-style: italic;
  letter-spacing: 0.02em;
}

.hero-divider {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6a6a6a 25%, #6a6a6a 75%, transparent);
  margin: 4px 0 2px;
  animation: heroLine 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s forwards;
}
.hero-divider::before,
.hero-divider::after {
  content: "";
  position: relative;
  top: -3px;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6a6a6a;
  opacity: 0;
  animation: heroDot 0.4s ease 1.4s forwards;
}
.hero-divider::before { margin-right: 8px; }
.hero-divider::after  { margin-left: 8px; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroLine {
  from { width: 0; }
  to   { width: clamp(120px, 22vw, 260px); }
}
@keyframes heroDot {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .line-1,
  .hero-title .line-2,
  .hero-divider,
  .hero-divider::before,
  .hero-divider::after {
    animation: none;
    opacity: 1;
    width: clamp(120px, 22vw, 260px);
  }
}

.hero-portraits {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;
  width: 100%;
}
.hero-portraits.single { max-width: 360px; }

.hero-portraits .portrait {
  flex: 0 1 320px;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.hero-portraits .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Collections (carousel-ish grid) ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 20px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.collection-card {
  text-align: center;
}

.collection-card .photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0 auto 18px;
  transition: transform 0.4s ease;
}
.collection-card:hover .photo {
  transform: scale(1.03);
}
.collection-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.collection-card .label {
  font-family: var(--font-display);
  letter-spacing: 0.32em;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- About blurb ---------- */
.about-blurb {
  max-width: 720px;
  margin: 40px auto 140px;
  text-align: center;
  font-size: 20px;
  line-height: 1.85;
  color: var(--ink);
}

/* ---------- Accolades list ---------- */
.accolades-banner {
  max-width: 1000px;
  margin: 0 auto 48px;
  aspect-ratio: 16 / 6;
  background: #eee url('images/accolades-banner.jpg') center/cover no-repeat;
}

.accolades-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: disc;
  padding-left: 28px;
  font-size: 17px;
  line-height: 2;
  color: var(--ink);
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.about-grid .photo {
  aspect-ratio: 3 / 4;
  background: #eee url('images/about-portrait.jpg') center/cover no-repeat;
  filter: grayscale(0.85);
}
.about-grid p {
  font-size: 18px;
  line-height: 1.9;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Collections page (full grid) ---------- */
.collections-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.collections-full .collection-card .photo {
  border-radius: 0;
  aspect-ratio: 4 / 5;
}

/* ---------- Contact form ---------- */
.contact-intro {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-size: 16px;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.contact-form .field { display: flex; flex-direction: column; }
.contact-form .field.full { grid-column: 1 / -1; }

.contact-form label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--ink-muted);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  background: #888;
  color: white;
  border: 0;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 12px;
}
.contact-form button:hover { background: #6a6a6a; }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}
.form-status.ok { color: #2d7a3d; }
.form-status.err { color: #b14040; }

.contact-direct {
  text-align: center;
  margin-top: 56px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.contact-direct a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-muted);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.contact-direct a:hover { border-bottom-color: var(--ink); }

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}
.site-footer svg { width: 22px; height: 22px; }
.site-footer .copy {
  font-size: 12px;
  color: #2a2a2a;
  letter-spacing: 0.06em;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 720px) {
  .nav { gap: 14px; height: 64px; flex-wrap: wrap; }
  .nav a { font-size: 11px; letter-spacing: 0.18em; }
  .page { padding-top: 120px; }
}
