/* Font self-hosted (SIL OFL 1.1). No Google Fonts / third-party requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-700-normal.woff2") format("woff2"); }

:root {
  --sage: #8FA58C;
  --cream: #F6F1E7;
  --terracotta: #C9734F;
  --anthracite: #2F3437;
  --sand: #E3D3B6;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--anthracite);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(143, 165, 140, 0.25), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 115, 79, 0.12), transparent 55%),
    var(--cream);
  line-height: 1.5;
}

a { color: var(--terracotta); }

.wrap {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--sage), #6f8a6c);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lang-toggle a {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--anthracite);
}

.lang-toggle a[aria-current="page"] {
  background: var(--sage);
  color: var(--white);
}

.hero { margin-bottom: 1.25rem; }
.hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
}
.hero p { margin: 0; max-width: 42rem; color: #4a5154; }

.privacy {
  margin: 1rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  background: rgba(143, 165, 140, 0.15);
  font-size: 0.92rem;
}

.disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--terracotta);
  background: rgba(201, 115, 79, 0.12);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.85rem 0 0.35rem;
}
label:first-of-type { margin-top: 0; }

input[type="text"],
input[type="time"],
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sand);
  border-radius: 10px;
  font: inherit;
  background: var(--cream);
  color: var(--anthracite);
}
textarea { min-height: 4.5rem; resize: vertical; }
input:focus, textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  background: var(--white);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0.75rem 0 0;
}
@media (max-width: 520px) {
  .checklist { grid-template-columns: 1fr; }
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}
.check-item input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #667075;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

button.primary, button.secondary {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.primary { background: var(--terracotta); color: var(--white); }
button.primary:hover { filter: brightness(0.96); }
button.secondary {
  background: var(--cream);
  color: var(--anthracite);
  border: 1px solid var(--sand);
}

.preview-sheet {
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 1.25rem 1.35rem;
  min-height: 18rem;
}

.preview-sheet h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}
.preview-meta {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #556065;
}
.preview-sheet ul {
  margin: 0;
  padding-left: 1.15rem;
}
.preview-sheet li {
  margin: 0.45rem 0;
  font-size: 0.95rem;
}
.preview-notes {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--sand);
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.preview-empty {
  color: #667075;
  font-size: 0.92rem;
  margin: 0;
}

.footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #6a7276;
  text-align: center;
}

.error {
  margin-top: 0.75rem;
  color: #9b3a2a;
  font-size: 0.9rem;
  min-height: 1.2em;
}

@media print {
  body {
    background: white;
  }
  .topbar,
  .hero,
  .privacy,
  .disclaimer,
  .card-form,
  .actions,
  .footer,
  .no-print {
    display: none !important;
  }
  .wrap {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .grid {
    display: block;
  }
  .card-preview {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .preview-sheet {
    border: 0;
    background: white;
    padding: 0;
    min-height: 0;
  }
}
