:root {
  color-scheme: dark;
  --paper: #151311;
  --text: #faf3e8;
  --muted: #c7bdb1;
  --accent: #d9774d;
  --border: #90857a;
  --gutter: clamp(24px, 4.2vw, 86px);
  --nav: clamp(66px, 5.4vw, 96px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.45 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button, a, summary, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffbd89; outline-offset: 4px; }
.masthead {
  height: var(--nav);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
  background: #151311;
  border-bottom: 1px solid #6b6054;
}
.brand, .account summary, .integration, .actions, .primary, .secondary {
  display: flex;
  align-items: center;
}
.brand { text-decoration: none; gap: clamp(16px, 4.1vw, 72px); }
.brand strong {
  font: 800 clamp(28px, 2.75vw, 50px)/1 "Arial Black", "Segoe UI", sans-serif;
  transform: scaleX(1.17);
  transform-origin: left;
  letter-spacing: -.05em;
}
.brand strong span {
  color: transparent;
  background: linear-gradient(125deg, var(--text) 49%, var(--accent) 50%);
  background-clip: text;
}
.domain {
  border-left: 1px solid #9a8e80;
  padding-left: clamp(16px, 2.1vw, 36px);
  font-size: clamp(18px, 1.95vw, 34px);
  letter-spacing: -.04em;
}
.account { position: relative; }
.account summary { gap: 10px; cursor: pointer; list-style: none; font-size: clamp(18px, 1.5vw, 26px); }
.account summary::-webkit-details-marker { display: none; }
.chevron, .picker::after {
  content: "";
  display: block;
  width: .5em;
  height: .5em;
  border: solid var(--text);
  border-width: 0 2px 2px 0;
  transform: translateY(-.1em) rotate(45deg);
}
.account[open] .chevron { transform: translateY(.1em) rotate(225deg); }
.avatar {
  width: clamp(30px, 2.9vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin-left: clamp(2px, 1.4vw, 24px);
  background:
    radial-gradient(circle at 50% 37%, #151311 0 13%, transparent 14%),
    radial-gradient(ellipse 30% 26% at 50% 79%, #151311 0 64%, transparent 66%) var(--accent);
}
.account form {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #201c19;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 9px;
}
.logout { color: var(--text); background: transparent; border: none; padding: 10px 26px; cursor: pointer; }
.scene { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--nav)); }
.art {
  position: absolute;
  z-index: -2;
  top: calc(0px - var(--nav));
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,14,13,.22), transparent 53%);
}
.content {
  width: min(37vw, 690px);
  min-width: 460px;
  margin: 0 var(--gutter);
  padding: clamp(46px, 4.85vw, 90px) 0 42px;
  overflow-wrap: anywhere;
}
.integration {
  gap: clamp(12px, 1.2vw, 22px);
  margin-bottom: clamp(23px, 2.8vw, 50px);
  font-size: clamp(34px, 3.15vw, 58px);
  font-weight: 680;
  letter-spacing: -.05em;
}
.integration strong { display: inline-block; font-weight: inherit; transform: scaleX(1.12); transform-origin: left; }
.page-profiles h1 { width: fit-content; transform: scaleX(1.08); transform-origin: left; }
.integration img { width: clamp(64px, 6.7vw, 116px); height: auto; }
h1 { margin: 0 0 clamp(22px, 2.55vw, 44px); font-size: clamp(52px, 4.7vw, 84px); line-height: 1.03; font-weight: 680; letter-spacing: -.056em; }
p { margin: 0 0 22px; max-width: 47ch; color: #e0d7cd; }
.intro, .back { display: inline-block; margin: 0 0 22px; color: var(--muted); }
.back { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.picker { position: relative; width: 96%; }
.picker::after { position: absolute; top: 44%; right: 5%; width: 12px; height: 12px; pointer-events: none; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #bdafa1;
  background: rgba(26,24,23,.94);
  color: var(--text);
  border-radius: 9px;
  padding: 11px 17px;
}
select {
  appearance: none;
  cursor: pointer;
  height: clamp(58px, 4.55vw, 80px);
  padding: 0 54px 0 clamp(18px, 1.85vw, 32px);
  font-size: clamp(22px, 1.8vw, 32px);
  border-radius: 12px;
}
option { background: #211e1b; }
.actions { gap: clamp(10px, 1.2vw, 22px); margin-top: clamp(20px, 2.35vw, 40px); }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: clamp(50px, 4vw, 68px);
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: clamp(8px, .8vw, 14px);
  font-size: clamp(17px, 1.45vw, 25px);
  line-height: 1.16;
  letter-spacing: -.035em;
  text-decoration: none;
  cursor: pointer;
}
.actions > * { flex: 1; }
.primary { background: #a94f2e; color: #fff9f2; font-weight: 580; }
.primary:hover { background: #984324; }
@media (min-width: 1260px) {
  .primary { background: #d26e44; font-size: clamp(24px, 1.5vw, 27px); }
  .primary:hover { background: #bf603a; }
}
.secondary { border-color: var(--text); background: rgba(20,18,17,.88); color: var(--text); }
.secondary:hover, .logout:hover { background: #342a24; }
.plus,.arrow { font-size: 1.2em; line-height: 1; }
.fields { display: grid; gap: 16px; max-width: 470px; }
.fields label { display: grid; gap: 6px; }
.fields .primary { justify-self: start; min-width: 145px; }
small { color: var(--muted); font-size: .8em; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #b5aba2; }
.error { color: #ffbaa4; margin: 0; }
.profile-info {
  margin-top: clamp(16px, 1.7vw, 28px);
  border: 1px solid #786355;
  border-radius: 12px;
  padding: 12px 18px 14px;
  background: rgba(23,19,17,.96);
}
.profile-info h2 { margin: 0 0 9px; font-size: 16px; font-weight: 400; }
.profile-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 15px; margin: 0; }
.profile-info dl div { min-width: 0; }
.profile-info dt { font-size: 12px; color: var(--muted); }
.profile-info dd { margin: 1px 0 0; font-size: 14px; white-space: pre-line; line-height: 1.3; }
.profile-info code { font: 12px/1.35 Consolas, monospace; }
@media (min-width: 761px) and (max-width: 1150px) {
  .scene::before { background: linear-gradient(90deg, rgba(16,14,13,.94) 0%, rgba(16,14,13,.78) 39%, transparent 66%); }
}
@media (max-width: 760px) {
  :root { --nav: 60px; --gutter: clamp(18px, 5vw, 32px); }
  .brand { gap: 15px; }
  .brand strong { font-size: 25px; }
  .domain { font-size: 16px; padding-left: 13px; }
  .admin > span { display: none; }
  .account summary { gap: 7px; font-size: 15px; }
  .avatar { display: none; }
  .scene { display: flow-root; }
  .art { height: clamp(180px, 32vw, 260px); top: 0; object-position: 84% 45%; }
  .scene::before { background: linear-gradient(to bottom, transparent 60%, var(--paper) 100%); height: clamp(181px, 32vw, 261px); }
  .content { width: auto; min-width: 0; margin: clamp(130px, 27vw, 190px) var(--gutter) 0; padding: 24px 0 38px; }
  .integration { font-size: 29px; margin-bottom: 19px; }
  .integration img { width: 47px; }
  h1 { font-size: clamp(43px, 8vw, 58px); margin-bottom: 22px; }
  .picker { width: 100%; }
  .actions { display: grid; grid-template-columns: 1.14fr 1fr; align-items: stretch; gap: 8px; margin-top: 15px; }
  .actions > * { white-space: nowrap; gap: .3em; padding-inline: 6px; }
  .primary,.secondary { padding: 10px; font-size: 16px; }
  .profile-info dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-info dl > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 374px) {
  .actions { grid-template-columns: 1fr; }
  .domain { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  .content, .profile-info:not([hidden]), .account[open] form { animation: appear .2s ease-out; }
  .primary,.secondary,.arrow { transition: transform .15s ease-out, background-color .15s ease-out; }
  .primary:active,.secondary:active { transform: translateY(1px); }
  @media (hover: hover) { .primary:hover .arrow { transform: translate(2px,-2px); } }
}
