:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --panel: #fffdf8;
  --ink: #1f1a17;
  --muted: #665d57;
  --line: #e7ddd1;
  --accent: #bb5a3c;
  --accent-soft: #f4ddd2;
  --shadow: 0 20px 50px rgba(31, 26, 23, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #f8e3d8, transparent 30%),
    radial-gradient(circle at top right, #e0efe8, transparent 35%),
    var(--bg);
}

main {
  width: min(860px, calc(100vw - 32px));
  margin: 40px auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.brand-pill,
.language-switch {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid #e4d8c9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(31, 26, 23, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.brand-pill {
  gap: 10px;
  padding: 9px 15px 9px 9px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.08);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.language-switch {
  gap: 9px;
  padding: 6px 10px 6px 7px;
}

.language-flag {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 18px;
  line-height: 1;
}

.language-copy {
  display: grid;
  line-height: 1.15;
  text-align: left;
}

.language-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-name {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.language-arrow {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand-pill:hover, .brand-pill:focus-visible,
.language-switch:hover, .language-switch:focus-visible {
  border-color: #d7bdae;
  box-shadow: 0 10px 26px rgba(31, 26, 23, 0.1);
  outline: none;
  transform: translateY(-1px);
}

h1, h2 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 16px; }
h2 { font-size: 1.2rem; margin-top: 28px; }
p, li { color: var(--muted); font-size: 1rem; }
ol, ul { padding-left: 20px; }
.meta { margin: 0 0 24px; color: var(--muted); font-size: 0.95rem; }
.notice { padding: 16px 18px; border-radius: 16px; background: #faf4ec; border: 1px solid var(--line); }
a { color: var(--accent); }

.support-card, .delete-panel {
  margin: 24px 0;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(187, 90, 60, 0.08), rgba(224, 239, 232, 0.4)), var(--panel);
  border: 1px solid var(--line);
}
.support-card h2, .delete-panel h2 { margin-top: 0; }
.contact-link, .danger-button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c96b4d, #b14d30);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(177, 77, 48, 0.16);
}
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-actions .contact-link { margin-top: 10px; }
.contact-link.secondary {
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.contact-link.secondary:hover,
.contact-link.secondary:focus-visible {
  border-color: #d7bdae;
  background: #fffaf6;
  outline: none;
}
.external-link { display: inline-flex; align-items: center; gap: 8px; }
.external-link::after {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.danger-button { cursor: pointer; background: linear-gradient(135deg, #c14b35, #9f3523); }
.danger-button:disabled { cursor: wait; opacity: 0.7; box-shadow: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.quick-links a { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }
label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 0.95rem; font-weight: 700; }
input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font: inherit; color: var(--ink); background: #fff; }
input:focus { outline: 2px solid rgba(187, 90, 60, 0.2); border-color: var(--accent); }
.helper { margin-top: 12px; font-size: 0.95rem; }
.status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 0.96rem; }
.status[data-tone="success"] { display: block; background: #e6f4ec; border: 1px solid #bdddc9; color: #255c3d; }
.status[data-tone="error"] { display: block; background: #fae6e1; border: 1px solid #ebc2b7; color: #8d3425; }

.site-footer {
  width: min(860px, calc(100vw - 32px));
  margin: -12px auto 28px;
  padding: 0 24px 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: rgba(255, 253, 248, 0.72);
  outline: none;
}

.footer-attribution {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-attribution a {
  padding: 2px 4px;
  font-weight: 600;
}

@media (max-width: 640px) {
  main { width: min(860px, calc(100vw - 20px)); margin: 16px auto; padding: 20px; border-radius: 18px; }
  .page-header { gap: 10px; margin-bottom: 24px; }
  .brand-pill { padding-right: 12px; }
  .language-label { display: none; }
  .language-name { margin-top: 0; }
  .site-footer { width: calc(100vw - 20px); margin-top: 0; padding-inline: 8px; }
}
