/* Tablet — limestone deboss.
   Ink tokens are contrast-tested in ContrastTest against --stone.
   The carved effect comes from the shadow pair, never from faint text. */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --stone:      #e6e0d3;
  --stone-deep: #ded7c8;
  --ink:        #3a352c;
  --ink-soft:   #5d5646;
  --accent:     #2f5c37;
  --danger:     #7a2e22;
  --rule:       rgba(0, 0, 0, .12);
  --lip:        rgba(255, 255, 255, .78);
  /* One light source, from above.
     Carved TEXT: a light lip below the glyph, faint shade above — letterpress.
     Recessed BOXES: shade on the upper inner edge, light on the lower one, the
     way a real indentation catches light. A highlight on the TOP inner edge is
     the RAISED convention and makes controls read as chips sitting on the slab
     instead of pressed into it. */
  --carve:      0 1px 0 var(--lip), 0 -1px 1px rgba(0,0,0,.10);
  --inset:      inset 0 2px 2px rgba(0,0,0,.13), inset 0 -1px 0 var(--lip);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 14px/1.55 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

/* Every carved element shares one light source. For text that means a light
   lip below the glyph and a faint shade above; for boxes, shade on the upper
   inner edge and light on the lower. Mix the two conventions and half the page
   reads as raised — it stops being a single slab. */
.carved { text-shadow: var(--carve); }

.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 14px 22px;
  border-bottom: 1px solid var(--rule); box-shadow: var(--carve);
}
.wordmark {
  font-weight: 600; font-size: 18px;
  letter-spacing: .26em; text-transform: uppercase;
  text-shadow: 0 1px 0 var(--lip), 0 -1px 1px rgba(0,0,0,.16);
}
.company-name { color: var(--ink-soft); letter-spacing: .08em; }

.shell { display: flex; min-height: calc(100vh - 52px); }

.nav { width: 190px; padding: 20px 0; border-right: 1px solid var(--rule); }
.nav a {
  display: block; padding: 8px 22px;
  color: var(--ink-soft); text-decoration: none;
  letter-spacing: .1em; text-transform: uppercase; font-size: 11px;
}
.nav a[aria-current='page'] { color: var(--ink); background: var(--stone-deep); box-shadow: var(--inset); }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }

.main { flex: 1; padding: 26px 30px; max-width: 780px; }

h1 { font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
     font-weight: 600; margin: 0 0 20px; text-shadow: var(--carve); }
h2 { font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
     color: var(--ink-soft); margin: 26px 0 10px; text-shadow: var(--carve); }

label { display: block; font-size: 11px; letter-spacing: .12em;
        text-transform: uppercase; color: var(--ink-soft); margin: 12px 0 4px; }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=file], textarea, select {
  width: 100%; padding: 8px 10px;
  font: inherit; color: var(--ink);
  background: var(--stone-deep);
  border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: var(--inset);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
textarea { min-height: 110px; resize: vertical; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .nav { width: 130px; } }

button, .btn {
  display: inline-block; margin-top: 18px; padding: 10px 16px;
  font: 600 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: var(--stone-deep);
  border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: var(--inset); text-shadow: var(--carve); cursor: pointer;
}
button:hover { background: #d7cfbe; }
button.danger { color: var(--danger); border-color: rgba(122,46,34,.35); }

.flash { padding: 10px 12px; margin-bottom: 16px; border-left: 3px solid var(--accent);
         background: var(--stone-deep); box-shadow: var(--inset); }
.flash.error { border-left-color: var(--danger); color: var(--danger); }

.note { color: var(--ink-soft); font-size: 12.5px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
     color: var(--ink-soft); padding: 6px 0; }
td { padding: 7px 0; border-bottom: 1px solid var(--rule); box-shadow: var(--carve); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
