/* ---------------------------------------------------------
   lemon glass creative — minimal
   Tones from the photo: sunlit plaster, warm shadow, lemon
--------------------------------------------------------- */

:root {
  --plaster: #f2ece2;
  --shadow: #3a332a;
  --lemon: #e8c435;
  --ink: #2c261e;
}

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

body {
  font-family: "Fraunces", serif;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- nav (all pages) ---------- */
/* pointer-events trick: the nav bar spans the full top of the
   page but must not block clicks on the wordmark beneath it */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  padding: 30px 40px;
  z-index: 10;
  pointer-events: none;
}

nav a {
  pointer-events: auto;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 470;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

nav a:hover, nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

.wordmark-top {
  position: fixed;
  top: 30px;
  left: 40px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 470;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  z-index: 11;
}

.wordmark-top:hover, .wordmark-top:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- home: the photo is the page ---------- */

.home {
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

.home nav a { color: var(--lemon); text-shadow: 0 1px 8px rgba(0,0,0,0.18); }

/* blurred oversized copy of the photo fills the screen behind
   the sharp one, so big monitors never stretch the source image */
.home .backdrop {
  position: absolute;
  inset: -40px;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center 42%;
  filter: blur(34px) brightness(1.02);
  transform: scale(1.1);
}

.home img.full {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* phones: full-bleed exactly as before */
@media (max-width: 700px) {
  .home .backdrop { display: none; }
  .home img.full { object-fit: cover; object-position: center 42%; }
}

.home .wordmark {
  position: absolute;
  left: 34px;
  bottom: 28px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 470;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--lemon);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
  z-index: 11;
}

.home .wordmark:hover, .home .wordmark:focus-visible { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- inner pages ---------- */

.inner {
  min-height: 100dvh;
  padding: 150px 40px 80px;
  background:
    radial-gradient(120% 90% at 85% -10%, #fbf6ea 0%, var(--plaster) 55%),
    var(--plaster);
}

.inner nav a { color: var(--ink); }

.sheet { max-width: 620px; margin: 0 auto; }

.sheet h1 {
  font-weight: 640;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.sheet h1 .dot { color: var(--lemon); }

.sheet p.lede {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--shadow);
  max-width: 32em;
}

/* ---------- contact ---------- */

.contact .sheet { max-width: 540px; }

.mail-line {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  color: var(--shadow);
  margin-bottom: 8px;
}

.mail {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  text-decoration: none;
  border-bottom: 2px solid var(--lemon);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
  word-break: break-all;
}

.mail:hover, .mail:focus-visible { border-color: var(--ink); }

form { margin-top: 64px; }

form label {
  display: block;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shadow);
  opacity: 0.75;
  margin: 34px 0 4px;
}

form input, form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(44, 38, 30, 0.4);
  background: transparent;
  padding: 10px 2px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
  resize: vertical;
}

form input:hover, form textarea:hover { border-bottom-color: rgba(44, 38, 30, 0.7); }

form input:focus-visible, form textarea:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--lemon);
}

button.send {
  margin-top: 48px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 44px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--plaster);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button.send:hover, button.send:focus-visible { background: transparent; color: var(--ink); }

button.send:disabled { opacity: 0.6; cursor: default; }

/* inline form status — shown after background submit */
#form-status.sent {
  margin-top: 64px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
}

#form-status.sent .sent-sub {
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--shadow);
}

#form-status.error {
  margin-top: 28px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.98rem;
  color: #8a3b1e;
}

/* ---------- footer ---------- */

.foot {
  max-width: 620px;
  margin: 110px auto 0;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--shadow);
  opacity: 0.7;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  nav { padding: 22px 22px; gap: 24px; }
  .wordmark-top { left: 22px; top: 22px; }
  .home .wordmark { left: 22px; bottom: 22px; }
  .inner { padding: 130px 24px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
