:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: #20231e;
  background: #f5f5ee;
  --ink: #20231e;
  --muted: #545a4e;
  --line: #cfd2c5;
  --paper: #fff;
  --accent: #d7f581;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #507121; outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.bar {
  max-width: 1120px; margin: auto; padding: 16px clamp(18px, 5vw, 44px);
  min-height: 72px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 800; font-size: 1.19rem; letter-spacing: -.03em; text-decoration: none;
}
.brand span { width: 12px; height: 12px; background: #507121; transform: rotate(45deg); }
main { width: min(calc(100% - 36px), 852px); margin: clamp(36px, 8vw, 84px) auto; }
.login { max-width: 384px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5.8vw, 3.8rem); line-height: 1.06; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2 { font-size: 1.375rem; letter-spacing: -.025em; }
h1 + form, h1 + a, h1 + .error { margin-top: 28px; }
.stack { display: grid; gap: 20px; }
label { display: grid; gap: 7px; min-width: 0; font-weight: 650; font-size: .92rem; }
input, select {
  display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #aeb4a4; border-radius: 8px;
}
input::placeholder { color: #666d5f; opacity: 1; }
.primary, .secondary, .quiet {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 15px; font-weight: 700; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent;
}
.primary { background: var(--accent); color: var(--ink); border-color: #9db65c; }
.primary:hover { background: #c9e96c; }
.secondary { color: var(--ink); border-color: #aeb4a4; background: transparent; }
.secondary:hover, .quiet:hover { background: #e8eade; }
.quiet { background: transparent; color: var(--muted); }
button:disabled { cursor: default; opacity: .58; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pages, .socials { padding: 0; list-style: none; }
.pages { margin: 24px 0 0; border-top: 1px solid var(--line); }
.pages li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pages li div { min-width: 0; overflow-wrap: anywhere; }
.page-title { display: inline-block; padding-block: 7px; font-size: 1.15rem; font-weight: 750; }
.pages p, .empty, .back { color: var(--muted); }
.preview { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
svg { width: 23px; height: 23px; flex: none; }
.empty { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 10px; }
.editor .stack { margin-top: 28px; gap: 28px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.address { display: flex; align-items: center; gap: 8px; border: 1px solid #aeb4a4; background: var(--paper); border-radius: 8px; padding-inline: 12px; }
.address > span { color: var(--muted); font-weight: 500; }
.address input { border: 0; padding-inline: 3px; min-height: 46px; }
#links { margin: 12px 0; border-top: 1px solid var(--line); }
.link-row { min-width: 0; margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); }
.link-fields { display: grid; grid-template-columns: 1fr 1.5fr; align-items: start; gap: 12px; }
.remove { margin-top: 5px; padding-inline: 9px; }
.error, .success { padding: 11px 13px; border-radius: 8px; margin: 16px 0; }
.error { background: #f9e6e0; color: #722d21; }
.success { background: #e8efda; color: #374822; }
.success a { display: inline-flex; align-items: center; gap: 4px; }
.success svg { width: 18px; height: 18px; }
.public { background: #20271e; color: #f1f3e7; }
.profile { max-width: 480px; margin-block: 0; padding: clamp(38px, 12vw, 104px) 0 48px; }
.mark { display: grid; place-items: center; width: 82px; height: 82px; background: var(--accent); color: var(--ink); border-radius: 16px; margin-bottom: 26px; }
.mark svg { width: 58px; height: 58px; }
.socials { margin: clamp(26px, 6vw, 38px) 0 0; border-top: 1px solid #5f6958; }
.socials a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 10px 3px; border-bottom: 1px solid #5f6958; text-decoration: none; font-size: 1.13rem; font-weight: 650; overflow-wrap: anywhere; }
.socials a:hover { color: var(--accent); }
.public :focus-visible { outline-color: var(--accent); }
.public svg { color: var(--accent); }
.public .mark svg { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .details, .link-fields { grid-template-columns: 1fr; }
}
