@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --ink: #171717; --paper: #f4f3ef; --lime: #c9f130; --muted: #777773; --line: #d7d6d0; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: 'Manrope', sans-serif; display: flex; flex-direction: column; overflow-x: hidden; user-select: none; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.site-header, .site-footer { width: min(1220px, calc(100% - 72px)); margin: 0 auto; display: flex; align-items: center; }
.site-header { padding: 30px 0; justify-content: center; }
.brand { color: var(--ink); display: inline-flex; align-items: center; text-decoration: none; }
.brand-name { font-size: 36px; font-weight: 800; font-style: italic; letter-spacing: -.095em; line-height: 1; }
.brand-dot { color: #7f9900; }
.header-note, .eyebrow, .form-topline, .result-label, .site-footer { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.header-note { color: var(--muted); display: flex; align-items: center; gap: 9px; }
.pulse { width: 7px; height: 7px; background: #88a900; border-radius: 50%; box-shadow: 0 0 0 4px rgba(201,241,48,.35); }
.hero { width: min(1220px, calc(100% - 72px)); margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; padding: 8vh 0 12vh; }
.forbidden-hero { grid-template-columns: 1fr; text-align: center; }
.forbidden-hero .hero-copy { max-width: 760px; margin: 0 auto; }
.forbidden-hero .intro { margin-left: auto; margin-right: auto; }
.hero-copy { animation: rise .7s ease both; }
.eyebrow { color: #829b12; margin: 0 0 28px; }
h1 { font-size: clamp(58px, 7.2vw, 106px); line-height: .92; letter-spacing: -.09em; margin: 0; font-weight: 800; }
h1 em { color: #91ac13; font-style: normal; }
.intro { max-width: 390px; color: #656560; font-size: 16px; line-height: 1.65; margin: 35px 0 0; }
.shortener { background: var(--ink); color: var(--paper); padding: 34px; box-shadow: 18px 18px 0 var(--lime); animation: rise .7s .12s ease both; }
.tool-viewport { min-width: 0; overflow: hidden; }
.tool-stack { display: flex; width: 200%; animation: rise .7s .12s ease both; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.tool-stack.history-active { transform: translateX(-50%); }
.tool-stack > .shortener, .tool-stack > .history-panel { flex: 0 0 50%; width: 50%; }
.tool-stack .shortener { animation: none; }
.form-topline { display: flex; justify-content: space-between; color: var(--paper); margin-bottom: 62px; }
.panel-switch { border: 0; padding: 0; color: #8b8b85; background: transparent; cursor: default; font: 11px 'DM Mono', monospace; text-transform: uppercase; }.panel-switch:hover { color: var(--lime); }
.counter { color: var(--lime); }.counter span { color: #73736e; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.input-row { display: flex; align-items: center; min-height: 63px; background: #292929; border-bottom: 1px solid #4c4c4b; transition: border-color .2s; }
.input-row:focus-within { border-color: var(--lime); }
.input-prefix { color: #777772; padding-left: 16px; font-family: 'DM Mono', monospace; font-size: 13px; }
input { color: var(--paper); background: none; border: 0; outline: 0; min-width: 0; flex: 1; padding: 0 12px; font: 14px 'DM Mono', monospace; user-select: text; }
input::placeholder { color: #686864; }
.submit-button, .copy-button { border: 0; cursor: default; font: 700 12px 'Manrope', sans-serif; }
.submit-button { align-self: stretch; min-width: 126px; display: flex; align-items: center; justify-content: space-around; color: var(--ink); background: var(--lime); }
.submit-button:hover, .copy-button:hover { background: #e1ff5f; }.submit-button:disabled { cursor: wait; opacity: .65; }
.arrow { font-size: 20px; font-weight: 400; }
.result { display: flex; gap: 20px; justify-content: space-between; align-items: center; background: #222221; border: 1px solid #3b3b39; margin-top: 30px; padding: 20px; animation: reveal .35s ease both; }
.result > div { min-width: 0; }
.result-label { display: block; color: #858580; font-size: 9px; margin-bottom: 9px; }.result a { color: var(--lime); font: 14px 'DM Mono', monospace; text-decoration: none; overflow-wrap: anywhere; }
.result a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-button { min-height: 46px; padding: 12px 15px; display: flex; gap: 10px; color: var(--ink); background: var(--paper); white-space: nowrap; transition: background .2s, transform .2s; }
.copy-button:hover { transform: translateY(-2px); }.copy-button:focus { outline: none; }.copy-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.message { min-height: 18px; color: #f08b77; font-size: 12px; margin: 18px 0 -4px; }.message.success { color: var(--lime); }
.message:empty { display: none; }
.history-panel { background: var(--ink); color: var(--paper); padding: 24px 34px; border: 1px solid #30302e; }
.history-heading { display: flex; align-items: center; justify-content: space-between; font: 11px 'DM Mono', monospace; letter-spacing: .04em; text-transform: uppercase; }.history-actions { display: flex; align-items: center; gap: 18px; }
.clear-button, .history-copy, .history-remove { border: 0; cursor: default; font: 11px 'Manrope', sans-serif; }
.clear-button { color: #8b8b85; background: transparent; padding: 0; }.clear-button:hover { color: var(--lime); }
.history-list { margin-top: 18px; }.history-empty { color: #777772; font: 11px 'DM Mono', monospace; margin: 0; }
.history-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-top: 1px solid #3b3b39; padding: 14px 0; }
.history-entry a { min-width: 0; color: var(--lime); font: 12px 'DM Mono', monospace; overflow-wrap: anywhere; text-decoration: none; }.history-entry a:hover { text-decoration: underline; }
.history-details { min-width: 0; display: grid; gap: 6px; }
.history-target { min-width: 0; color: #858580; font: 10px 'DM Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-copy { color: var(--paper); background: #30302e; padding: 8px 10px; }.history-copy:hover { background: #41413e; }
.history-remove { color: #858580; background: transparent; font-size: 18px; padding: 2px 0 2px 4px; }.history-remove:hover { color: #f08b77; }
.site-footer { margin-top: auto; padding: 28px 0 30px; color: #96958f; gap: 16px; }.footer-line { height: 1px; background: var(--line); flex: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .site-header, .site-footer, .hero { width: min(100% - 40px, 520px); }.header-note { display: none; }.hero { display: block; padding: 7vh 0 12vh; }.intro { margin-top: 25px; font-size: 15px; }.tool-viewport { margin-top: 58px; }.shortener { padding: 24px; box-shadow: 10px 10px 0 var(--lime); }.history-panel { padding: 22px 24px; }.form-topline { margin-bottom: 42px; }.input-row { display: grid; grid-template-columns: auto 1fr; padding-top: 12px; }.input-prefix { padding-left: 14px; }.submit-button { grid-column: 1 / -1; min-height: 53px; margin-top: 12px; }.history-entry { grid-template-columns: minmax(0, 1fr) auto; }.history-remove { grid-column: 2; grid-row: 1; }.history-copy { grid-column: 2; grid-row: 1; margin-right: 24px; }.site-footer { font-size: 9px; }.footer-line { min-width: 20px; } }
