:root {
  --ink: #18221f;
  --paper: #f5f0e8;
  --canvas: #e5eee5;
  --line: #c8d0c4;
  --muted: #778078;
  --accent: #d95d39;
  --accent-ink: #fffaf3;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Mono", monospace; font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1200px) / 2)); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-family: "Newsreader", serif; font-size: 32px; font-weight: 650; line-height: 1; text-decoration: none; }
.brand span { color: var(--accent); }
.site-header p { color: var(--muted); margin: 0; font-size: 11px; text-transform: uppercase; }
main { max-width: 1200px; margin: 0 auto; padding: 82px 24px 112px; }
.intro { max-width: 720px; margin-bottom: 92px; animation: reveal .6s ease-out both; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Newsreader", serif; font-weight: 650; letter-spacing: 0; }
h1 { max-width: 650px; font-size: 68px; line-height: .92; }
h2 { font-size: 34px; line-height: 1; }
.lede { max-width: 500px; margin: 25px 0 0; color: #45534b; font-size: 16px; line-height: 1.65; }
.creation { display: grid; grid-template-columns: 1fr 1.65fr; gap: 52px; padding: 36px 0 40px; border-top: 2px solid var(--ink); }
.section-heading { align-self: start; }
.link-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.link-form label:nth-child(2) { grid-column: span 2; }
label { display: grid; gap: 7px; color: #3f4c44; font-size: 11px; text-transform: uppercase; }
label em { color: var(--muted); font-style: normal; }
input { width: 100%; min-height: 46px; padding: 11px 12px; color: var(--ink); background: transparent; border: 1px solid #aeb8ad; border-radius: 4px; outline: 0; text-transform: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 93, 57, .14); }
.path-field { display: flex; align-items: center; min-height: 46px; padding-left: 12px; border: 1px solid #aeb8ad; border-radius: 4px; text-transform: none; }
.path-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 93, 57, .14); }
.path-field b { color: var(--muted); font-weight: 400; }
.path-field input { min-height: 44px; padding-left: 2px; border: 0; box-shadow: none; }
button { min-height: 42px; padding: 9px 15px; color: var(--accent-ink); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px; }
button:hover { background: var(--accent); border-color: var(--accent); }
.link-form button { grid-column: span 2; justify-self: start; min-width: 150px; margin-top: 4px; }
.form-message { min-height: 20px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.form-message.error { color: #a73420; }
.recovery-notice { max-width: 620px; margin: 2px 0 84px; padding: 25px 28px; background: #dfead8; border-left: 4px solid var(--accent); animation: reveal .4s ease-out both; }
.recovery-notice p:last-of-type { max-width: 500px; margin: 10px 0 18px; color: #536258; font-size: 12px; }
.recovery-token { margin: 0; color: #829083; font-size: 25px; letter-spacing: .03em; }
.quiet-button { min-height: 32px; padding: 5px 9px; color: var(--ink); background: transparent; border-color: var(--ink); font-size: 11px; }
.directory { padding-top: 35px; border-top: 1px solid var(--line); }
.directory-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 15px; }
.heading-left { display: flex; flex-direction: column; gap: 6px; }
.directory-tabs { display: flex; gap: 20px; }
.tab-button { background: none; border: none; padding: 0 0 4px; min-height: 0; color: var(--muted); font-family: "Newsreader", serif; font-size: 34px; font-weight: 650; line-height: 1; border-bottom: 2px solid transparent; border-radius: 0; transition: color .2s, border-bottom-color .2s; }
.tab-button:hover { color: var(--ink); background: none; border-color: transparent; }
.tab-button.active { color: var(--ink); border-bottom-color: var(--accent); }
.link-count { margin: 0; padding-bottom: 6px; color: var(--muted); font-size: 12px; }
.link-list { border-top: 1px solid var(--ink); }
.link-row { display: grid; grid-template-columns: minmax(160px, .75fr) minmax(180px, 1.2fr) 80px; gap: 20px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); animation: reveal .35s ease-out both; }
.link-main { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.link-path { color: var(--accent); font-size: 13px; }
.link-title { overflow: hidden; color: #435148; font-family: "Newsreader", serif; font-size: 19px; white-space: nowrap; text-overflow: ellipsis; }
.link-target { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.manage-button { justify-self: end; min-height: 30px; padding: 4px 8px; color: var(--ink); background: transparent; border-color: transparent; font-size: 11px; }
.manage-button:hover { color: var(--accent); background: transparent; border-color: transparent; }
.empty-state { padding: 36px 0; color: var(--muted); }
.manage-dialog { width: min(530px, calc(100vw - 32px)); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--ink); }
.manage-dialog::backdrop { background: rgba(24, 34, 31, .5); }
.manage-dialog form { padding: 28px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; }
.icon-button { min-height: 26px; width: 26px; padding: 0; color: var(--ink); background: transparent; border-color: transparent; font-size: 20px; line-height: 1; }
.icon-button:hover { color: var(--accent); background: transparent; }
.manage-dialog h2 { margin: 8px 0 27px; color: var(--accent); font-size: 36px; }
.dialog-copy { margin: 0 0 20px; color: #536258; font-size: 12px; }
#restore-panel, #editor-panel { display: grid; gap: 18px; }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 5px; }
.danger-button { min-height: 34px; padding: 4px 0; color: #a73420; background: transparent; border-color: transparent; font-size: 11px; }
.danger-button:hover { background: transparent; color: #6f1a0b; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) { .site-header p { display: none; } main { padding-top: 54px; } h1 { font-size: 52px; } .creation { grid-template-columns: 1fr; gap: 28px; } .link-form { grid-template-columns: 1fr; } .link-form label:nth-child(2), .link-form button { grid-column: span 1; } .link-row { grid-template-columns: 1fr auto; gap: 6px 14px; } .link-target { grid-column: 1; } .manage-button { grid-column: 2; grid-row: 1 / span 2; } }