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

:root {
  --ink: #17201b;
  --muted: #6c736e;
  --cream: #f5f1e8;
  --paper: #fffefa;
  --line: #dcd9cf;
  --orange: #ee7444;
  --orange-dark: #cf5930;
  --green: #294d3c;
  color: var(--ink);
  background: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.site-page { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 42px; border-bottom: 1px solid var(--line); }
.site-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; letter-spacing: .12em; font-size: 13px; font-weight: 700; }
.site-brand em { font-style: normal; color: var(--orange); }
.site-mark { display: grid; place-items: center; background: var(--green); color: white; width: 34px; height: 34px; border-radius: 2px; transform: rotate(-2deg); font-family: Georgia, serif; font-size: 23px; }
.site-account { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.site-caption { color: var(--muted); font: 400 10px 'DM Mono', monospace; }
.site-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; font-weight: 600; cursor: pointer; }
.site-button:hover { background: var(--green); }
.site-button.secondary { padding: 8px 12px; color: var(--ink); background: transparent; border-color: var(--line); font-size: 12px; }
.site-button.secondary:hover { background: #eae6dc; }
.login-layout { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 90px; width: min(1050px, calc(100% - 64px)); margin: auto; padding: 70px 0; }
.site-eyebrow { color: var(--orange-dark); font: 500 10px 'DM Mono', monospace; letter-spacing: .14em; }
.site-intro h1 { font: 400 clamp(48px, 6vw, 76px)/1 'Libre Caslon Display', Georgia, serif; letter-spacing: -.04em; margin: 24px 0; }
.site-intro h1 em { color: var(--orange); font-weight: 400; }
.site-intro > p:last-child { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.login-card { padding: 38px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: 8px 8px 0 rgba(41,77,60,.06); }
.card-symbol { display: grid; place-items: center; width: 47px; height: 51px; border-radius: 2px; border: 1px solid #dac5b9; background: #fcf0e9; color: var(--orange-dark); font: 500 13px 'DM Mono', monospace; }
.login-card h2, .tool-card h2, .logout-layout h1 { font: 400 32px 'Libre Caslon Display', Georgia, serif; margin: 22px 0 8px; }
.login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-form { display: flex; flex-direction: column; }
.login-form label { font: 500 10px 'DM Mono', monospace; color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
.login-form input:not([type=hidden]) { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 3px; background: white; padding: 12px; margin-bottom: 22px; }
.login-form button { margin-top: 3px; }
.login-note { display: block; text-align: center; color: var(--muted); font-size: 10px; margin-top: 22px; }
.site-error { background: #fbe8e3; color: #9c352b; border: 1px solid #e8b8ac; padding: 12px; margin-bottom: 20px; border-radius: 3px; font-size: 13px; }
.site-footer { padding: 17px 20px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font: 400 9px 'DM Mono', monospace; letter-spacing: .1em; }
.site-footer span { color: var(--orange); margin: 0 6px; }
.dashboard-layout { flex: 1; width: min(1120px, calc(100% - 64px)); margin: auto; padding: 54px 0 80px; }
.dashboard-intro { margin-bottom: 52px; }
.dashboard-intro h1 { font-size: clamp(48px, 6vw, 68px); }
.tools-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.tools-heading h2, .tools-heading > span { font: 500 10px 'DM Mono', monospace; letter-spacing: .1em; color: var(--muted); margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.tool-card { display: flex; flex-direction: column; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 28px; }
.tool-card-link { display: flex; justify-content: space-between; padding-top: 18px; margin-top: auto; border-top: 1px solid var(--line); color: var(--green); font-size: 12px; font-weight: 600; }
.logout-layout { max-width: 440px; width: calc(100% - 40px); margin: 65px auto; }
.logout-layout .site-back { display: inline-block; margin-top: 22px; }
.site-back { text-decoration: none; color: var(--green); font-size: 12px; font-weight: 600; }
.site-back:hover { text-decoration: underline; }
.tool-navigation { height: 48px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--cream); }
.pdf-tool { height: 100vh; }
.pdf-tool #root { height: calc(100% - 48px); }
@media (max-width: 760px) {
  .site-header { padding: 15px 20px; }
  .site-caption { display: none; }
  .login-layout { grid-template-columns: 1fr; gap: 28px; padding: 35px 0 50px; max-width: 500px; }
  .login-card { padding: 28px; }
  .site-intro h1 { font-size: 49px; }
  .dashboard-layout { width: calc(100% - 40px); padding-top: 35px; }
  .site-account { gap: 8px; }
}
