:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #21302a;
  --muted: #56645c;
  --line: #c8cdc4;
  --accent: #e8bb69;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
.sitehead { min-height: 80px; padding: 16px max(6vw, 22px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 1.4rem; font-weight: 720; letter-spacing: -.06em; }
.mark { width: 27px; height: 33px; display: inline-block; position: relative; border: 2px solid var(--ink); background: var(--accent); border-radius: 3px 6px 6px 3px; transform: rotate(-7deg); }
.mark::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; border-left: 1px solid var(--ink); }
.mark::after { content: ""; position: absolute; top: 9px; left: 10px; right: 3px; height: 2px; background: var(--ink); box-shadow: 0 5px var(--ink); }
.account { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; justify-content: flex-end; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.quiet { background: none; border: 1px solid var(--line); border-radius: 999px; }
button { font: inherit; cursor: pointer; color: var(--ink); }
.quiet { min-height: 42px; padding: 0 15px; }
.workspace { max-width: 1020px; padding: clamp(44px, 10vh, 110px) 30px 56px; margin: 0 auto; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(310px, 1.05fr); gap: clamp(48px, 8vw, 120px); }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 5.4vw, 4.8rem); line-height: 1.01; letter-spacing: -.057em; font-weight: 500; max-width: 13ch; }
.intro p { margin: 24px 0 0; max-width: 37ch; font-size: 1.06rem; line-height: 1.55; color: var(--muted); }
.paper-stack { position: relative; width: 103px; height: 108px; margin: 0 0 28px 8px; }
.paper-stack > div { width: 70px; height: 86px; border: 1.5px solid var(--ink); border-radius: 3px; top: 7px; position: absolute; }
.back-sheet { left: 18px; transform: rotate(12deg); background: #ebd9ad; }
.front-sheet { left: 3px; transform: rotate(-9deg); background: #fffcf4; padding: 20px 12px 8px; display: grid; align-content: start; gap: 9px; }
.front-sheet b { height: 2px; border-radius: 20px; background: #a9ae9b; }
.front-sheet b:first-child { width: 46%; height: 5px; background: #cb9848; }
.front-sheet b:last-child { width: 66%; }
.card { min-width: 0; padding: clamp(24px, 4vw, 44px); background: #fffcf6; border: 1px solid #d9d8cd; border-radius: 16px; box-shadow: 0 12px 35px #3237240b; }
form { display: flex; flex-direction: column; }
label { font-size: .94rem; font-weight: 650; }
label:not(:first-child) { margin-top: 24px; }
input { font: inherit; color: var(--ink); padding: 12px 14px; min-height: 48px; margin-top: 8px; border: 1px solid #a7b0a5; border-radius: 7px; background: #fffefa; width: 100%; }
input:focus-visible, button:focus-visible { outline: 3px solid #8d6b27; outline-offset: 3px; }
.primary { background: var(--ink); color: #fffbeb; border: none; border-radius: 7px; padding: 13px 16px; margin-top: 32px; width: 100%; min-height: 49px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.primary:hover { background: #36483c; }
.primary span { color: var(--accent); font-size: 1.35rem; line-height: 1; }
button:disabled { opacity: .65; cursor: wait; }
.hint, .feedback { font-size: .875rem; line-height: 1.48; overflow-wrap: anywhere; }
.hint { margin: 6px 0 0; color: var(--muted); }
.feedback { margin: 20px 0 0; padding: 12px; border-left: 3px solid #5c8860; background: #e5eddf; }
.feedback.error { border-color: #ad5345; background: #f7e8e1; color: #6f302a; }
.feedback:empty { display: none; }
.clip { max-width: 640px; margin: clamp(45px, 13vh, 150px) auto; padding: 0 30px; }
.clip p { margin: 18px 0; max-width: 42ch; line-height: 1.6; color: var(--muted); }
.clip h1 { margin-top: 46px; }
@media (max-width: 720px) {
  .workspace { max-width: 540px; grid-template-columns: 1fr; gap: 27px; padding: 42px 22px; }
  .sitehead { min-height: 68px; }
  .paper-stack { display: none; }
  .intro p { margin-top: 14px; }
  h1 { max-width: 16ch; }
}
