:root {
  --ink: #15202b;
  --ink-soft: #3d4b5c;
  --paper: #f3f6f8;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(21, 32, 43, 0.12);
  --accent: #0f766e;
  --accent-deep: #0b5a54;
  --ok: #147a46;
  --warn: #9a3412;
  --shadow: 0 24px 60px rgba(21, 32, 43, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(21, 32, 43, 0.08), transparent 50%),
    linear-gradient(180deg, #e8eef2 0%, var(--paper) 45%, #eef3f5 100%);
}

a {
  color: var(--accent-deep);
}

.shell {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38rem;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.section {
  margin-bottom: 1.35rem;
}

.section:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #94a3b8;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(20, 122, 70, 0.15);
}

.hint {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.95rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.preview {
  margin-top: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), transparent 45%),
    #fff;
  color: var(--ink-soft);
}

.preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-deep);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.flash {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}

.flash.show {
  display: block;
}

.flash.ok {
  background: rgba(20, 122, 70, 0.1);
  color: var(--ok);
}

.flash.err {
  background: rgba(154, 52, 18, 0.1);
  color: var(--warn);
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
}

.legal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
}

.legal .meta {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.55rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal ul {
  padding-left: 1.2rem;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
