:root {
  color-scheme: light;
  --accent: #f17d38;
  --accent-dark: #d95f1d;
  --ink: #18212b;
  --muted: #5f6b7a;
  --line: #dfe4eb;
  --page: #f5f7fa;
  --card: #ffffff;
  --danger: #c9372c;
  --danger-dark: #a92820;
  --success: #176b43;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0, rgba(241, 125, 56, 0.14), transparent 32rem),
    var(--page);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

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

a:focus-visible {
  outline: 3px solid rgba(241, 125, 56, 0.45);
  outline-offset: 3px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  color: #fff;
  background: #080d13;
}

.header-inner,
main,
footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

main {
  padding: 40px 0 24px;
}

article {
  padding: clamp(24px, 5vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(24, 33, 43, 0.09);
}

h1,
h2 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.02em;
}

h2 {
  margin: 32px 0 10px;
  font-size: clamp(20px, 3vw, 23px);
}

p,
ol,
ul {
  margin: 0 0 14px;
}

ol,
ul {
  padding-left: 24px;
}

li + li {
  margin-top: 6px;
}

.meta,
footer {
  color: var(--muted);
}

.notice {
  margin: 22px 0 4px;
  padding: 16px 18px;
  background: #fff6ef;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.deletion-form {
  margin-top: 20px;
  padding: clamp(20px, 4vw, 28px);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.field + .field {
  margin-top: 18px;
}

label,
legend {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb8c5;
  border-radius: 8px;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(241, 125, 56, 0.35);
  outline-offset: 2px;
  border-color: var(--accent-dark);
}

.field-help,
.privacy-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-field {
  margin: 22px 0;
  padding: 14px 16px;
  background: #fff3f1;
  border: 1px solid #f1c3be;
  border-radius: 8px;
}

.confirm-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}

.confirm-label input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--danger);
}

.action {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(169, 40, 32, 0.2);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(169, 40, 32, 0.26);
}

.action:active {
  transform: translateY(0);
}

.action:disabled {
  box-shadow: none;
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-error {
  color: #84251f;
  background: #fff0ee;
  border: 1px solid #efb6b0;
}

.form-status.is-success {
  color: var(--success);
  background: #edf8f2;
  border: 1px solid #a9d7bf;
}

footer {
  padding: 0 0 40px;
  font-size: 14px;
  text-align: center;
}

footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 600px) {
  .header-inner,
  main,
  footer {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 60px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 8px 0;
  }

  .brand img {
    height: 32px;
  }

  .header-links {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
    font-size: 14px;
  }

  .header-links a {
    padding: 0 3px;
    white-space: nowrap;
  }

  main {
    padding: 16px 0 20px;
  }

  article {
    padding: 22px 16px 28px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(24, 33, 43, 0.08);
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(25px, 7.4vw, 29px);
    line-height: 1.18;
    text-wrap: pretty;
  }

  h2 {
    margin: 26px 0 8px;
    font-size: 20px;
  }

  p,
  ol,
  ul {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.68;
  }

  ol,
  ul {
    padding-left: 21px;
  }

  .meta {
    font-size: 13px;
    line-height: 1.55;
  }

  .notice {
    margin: 18px 0 2px;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.65;
  }

  .deletion-form {
    margin-top: 16px;
    padding: 18px 14px;
    border-radius: 12px;
  }

  .field + .field {
    margin-top: 16px;
  }

  label {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
  }

  input[type="email"],
  input[type="password"] {
    min-height: 52px;
    padding: 12px;
    font-size: 16px;
  }

  .confirm-field {
    margin: 18px 0;
    padding: 12px;
  }

  .confirm-label {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .confirm-label input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
  }

  .action {
    min-height: 54px;
    flex-direction: column;
    gap: 1px;
    padding: 9px 14px;
    line-height: 1.25;
  }

  .privacy-note {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.55;
  }

  .form-status {
    margin-top: 14px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.55;
  }

  footer {
    padding: 0 4px 28px;
    font-size: 12px;
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .header-inner,
  main,
  footer {
    width: calc(100% - 20px);
  }

  .header-links {
    gap: 4px;
    font-size: 13px;
  }

  article {
    padding: 20px 14px 26px;
  }

  h1 {
    font-size: 25px;
  }

  .deletion-form {
    padding: 16px 12px;
  }

}
