/* The look of antonkstudio.com: warm paper, ink, coral accent, heavy tight headings, pill buttons. */
:root {
  color-scheme: light;
  --ink: #151816;
  --ink-soft: #303530;
  --paper: #f3f0e9;
  --paper-deep: #e7e2d8;
  --line: #c9c5ba;
  --muted: #686c65;
  --coral: #eb674e;
  --surface: #fbf9f4;
  --danger: #a3261b;
  --ok: #2f6b3c;
  --radius-lg: 28px;
  --shadow: 0 22px 60px rgba(21, 24, 22, 0.13);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  min-width: 300px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.48;
  overflow-x: clip;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
a {
  color: inherit;
}
.shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  padding: max(18px, env(safe-area-inset-top)) 0 18px;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.93rem;
  font-weight: 790;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.text-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
}
.text-link:hover {
  color: var(--coral);
}
.language-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.language-button:hover {
  border-color: #aaa69b;
  background: #fff;
}
.language-button:active {
  transform: scale(0.96);
}
main {
  max-width: 520px;
  padding-block: clamp(36px, 8vw, 88px) 24px;
}
.card {
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 790;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.eyebrow::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 9px 4px 0;
  background: currentColor;
  content: "";
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 9vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-wrap: balance;
}
h1 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: -0.08em;
}
h2 {
  margin: 28px 0 10px;
  font-size: 0.74rem;
  font-weight: 790;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.fine {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
input:hover {
  border-color: #aaa69b;
}
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
button {
  min-height: 48px;
  padding: 10px 20px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
button:hover {
  border-color: #aaa69b;
  background: #fff;
}
button:active {
  transform: scale(0.98);
}
button.primary {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}
button.primary:hover {
  color: var(--ink);
  background: var(--coral);
  border-color: var(--coral);
}
button.small {
  min-height: 40px;
  padding: 6px 14px;
}
button.link {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.link:hover {
  color: var(--coral);
  background: none;
}
button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 10px 0 0;
}
.actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.msg {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
}
.msg.error {
  color: var(--danger);
  border-color: var(--danger);
}
.msg.info {
  color: var(--ok);
  border-color: var(--ok);
}
.scopes {
  margin: 0 0 16px;
  padding-left: 20px;
}
.apps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.apps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.tile:hover {
  border-color: #aaa69b;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(21, 24, 22, 0.11);
}
.tile img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 420px) {
  .text-link {
    display: none;
  }
}
