/* Seaside Gardens — public letter. Tokens from Client Gardens / invoice. */

:root {
  --cream: #fef6e4;
  --cream-warm: #fbe8c2;
  --shell: #fffaf0;
  --paper: #fffaf0;
  --line: rgba(10, 49, 66, 0.10);
  --ink: #0a3142;
  --ink-soft: rgba(10, 49, 66, 0.82);
  --ink-mute: rgba(10, 49, 66, 0.70);
  --moss: #3d8a6b;
  --moss-soft: #c1e4d1;
  --accent: #3d8a6b;
  --accent-deep: #2b5f47;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-card: 0 22px 48px rgba(14, 43, 51, 0.12);
  --letter: 36rem;
  --z-nav: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(120% 80% at 50% -10%, #fdf3df 0%, var(--cream) 58%);
  background-repeat: no-repeat;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
::selection { background: var(--moss-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }

.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;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: calc(var(--z-nav) + 1);
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
.place {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
}
.top a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.top a:hover { color: var(--accent-deep); }

.floor {
  padding: clamp(1.5rem, 4vw, 3.5rem) 1rem 3.5rem;
}

.letter {
  max-width: var(--letter);
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.letterhead {
  text-align: center;
  padding: 2.4rem 1.6rem 1.4rem;
}
.letterhead .logo {
  margin: 0 auto;
  width: auto;
  height: auto;
  max-height: 220px;
  max-width: 220px;
}
.tagline {
  color: var(--moss);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-top: 0.85rem;
  font-weight: 600;
}

.leaf-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--moss);
  padding: 0 1.6rem;
}
.leaf-rule::before,
.leaf-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line) 40%, var(--line) 60%, transparent);
}
.leaf-rule svg { width: 22px; height: 22px; flex: none; }

.body {
  padding: 1.7rem 1.7rem 2.2rem;
}
.body > * + * { margin-top: 1.55rem; }

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  font-variation-settings: "opsz" 96;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
}
.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
  max-width: 38rem;
  margin: 0.85rem 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
  padding-top: 0.2rem;
}
.split h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-deep);
  margin: 0 0 0.55rem;
}
.split ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.split li {
  padding: 0.28rem 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.split .not li { color: var(--ink-mute); }

.where {
  color: var(--ink-soft);
  text-wrap: pretty;
}
.where strong {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

.note {
  background: color-mix(in srgb, var(--moss-soft) 35%, var(--paper));
  border-radius: var(--r-md);
  padding: 1.15rem 1.2rem 1.25rem;
  scroll-margin-top: 1rem;
}
.note h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent-deep);
  margin: 0 0 0.35rem;
}
.note p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.field { margin-bottom: 0.9rem; }
.field:last-of-type { margin-bottom: 1.1rem; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.req { color: var(--accent-deep); }
input, textarea {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--shell);
  border: 1px solid rgba(14, 43, 51, 0.16);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  appearance: none;
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field.has-error input,
.field.has-error textarea {
  border-color: #a84f17;
}
.field-error {
  display: none;
  color: #8a3d12;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.field.has-error .field-error { display: block; }
.hint {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.25rem;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 48px;
  background: var(--accent);
  color: var(--cream);
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.form-submit:hover { background: var(--accent-deep); }
.form-submit:disabled { opacity: 0.65; cursor: wait; }
.form-status {
  min-height: 1.3rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
}
.form-status.error { color: #8a3d12; }
.form-success {
  text-align: center;
  padding: 1.2rem 0.4rem;
}
.form-success h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--accent-deep);
  margin: 0.4rem 0 0.4rem;
}
.form-success p { margin: 0; color: var(--ink-soft); }
.check {
  width: 42px; height: 42px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
}
.check svg { width: 22px; height: 22px; }

.foot {
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-top: 1.6rem;
}
.foot a { color: inherit; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.letterhead { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.body { animation: rise 0.7s 0.08s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

@media (max-width: 640px) {
  .letter { border-radius: 18px; }
  .letterhead { padding: 1.8rem 1.2rem 1.1rem; }
  .letterhead .logo { max-height: 168px; max-width: 168px; }
  .body { padding: 1.35rem 1.2rem 1.8rem; }
  .split { grid-template-columns: 1fr; gap: 1.1rem; }
  h1 { font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .letterhead, .body { animation: none; }
}
