* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
header { border-bottom: 1px solid var(--line); }
nav { width: min(1180px, calc(100% - 64px)); margin: auto; min-height: 74px; font-size: 14px; display: flex; align-items: center; gap: 24px; }
nav a { color: var(--ink); text-decoration: none; }
.brand { margin-right: auto; display: flex; gap: 10px; align-items: center; font: 600 30px/1 var(--font-display); letter-spacing: -.055em; }
h1, h2 { font-family: var(--font-display); font-weight: 500; }
h1 { margin: 0 0 18px; font-size: clamp(46px, 5.6vw, 74px); line-height: 1; letter-spacing: -.055em; }
h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; line-height: 1.2; }
section { margin: 0 0 16px; padding: clamp(20px, 4vw, 36px); background: var(--surface-elevated); border: 1px solid var(--line); border-radius: 6px; }
p, small, footer { color: var(--body-copy); }
small { display: block; }
label { display: block; font-weight: 600; }
input { width: 100%; padding: 12px; margin: 5px 0 16px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--field); color: var(--ink); font: inherit; }
button { cursor: pointer; font: inherit; font-weight: 600; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--paper); padding: 9px 16px; }
.secondary, .theme { background: transparent; color: var(--ink); border-color: var(--line-strong); }
form + form { margin-top: 12px; }
.theme { border-radius: 50%; width: 40px; height: 40px; padding: 0; font-size: 22px; }
.sun, [data-theme=dark] .moon { display: none; }
[data-theme=dark] .sun { display: inline; }
.mac { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; overflow-wrap: anywhere; }
footer { margin-top: 16px; }
footer a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

main { width: min(1000px, calc(100% - 64px)); margin: auto; padding: clamp(56px, 9vw, 112px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 92px); align-items: start; }
.intro p { max-width: 35ch; margin: 0; font-size: 18px; }
.art { width: min(80%, 280px); aspect-ratio: 4 / 3; margin: 32px 0 0; }
.art::before { content: ''; display: block; height: 100%; background: url('/license-archive.webp') center / contain no-repeat; mix-blend-mode: multiply; }
[data-theme=dark] .art::before { background-image: url('/license-archive-night.webp'); mix-blend-mode: normal; }
.account { min-width: 0; }
.account section > p { margin: 12px 0 22px; }
.account label, .account button, footer { font-size: 14px; }
.account button { min-height: 42px; }
.account a { color: var(--blue); }
.notice { padding: 12px 16px; border-left: 3px solid var(--teal); background: var(--green-wash); }
.notice[role=alert] { border-color: var(--rust); }
@media (max-width: 740px) {
    nav, main { width: min(100% - 40px, 540px); }
    nav { min-height: 62px; gap: 16px; }
    .brand { font-size: 24px; gap: 6px; }
    .brand img { width: 29px; height: 29px; }
    main { grid-template-columns: 1fr; padding-block: 40px; gap: 26px; }
    .intro p { font-size: 16px; }
    .art { display: none; }
}

.account .text-link { padding: 0; border: 0; background: transparent; color: var(--blue); font-weight: 500; text-decoration: underline; }
