/* shishirg.com/work: the recruiter page, drawn as sheet 2 of 2 to match engineer mode on the homepage. */

:root {
  --paper: #FBFBF8; --ink: #111; --muted: #55524C; --head: #F1F0EB; --accent: #C4231A;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #E9E7E1; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The sheet: double border with zone columns 1–8 top and bottom. */
.sheet { position: relative; max-width: 1180px; margin: 24px auto 40px; background: var(--paper); border: 1.5px solid var(--ink); padding: 22px; }
.sheet::before { content: ""; position: absolute; inset: 16px; border: 1.5px solid var(--ink); pointer-events: none; }
.zones { position: absolute; left: 16px; right: 16px; height: 16px; display: flex; font: 600 9px/16px var(--mono); }
.zones.top { top: 0; } .zones.bot { bottom: 0; }
.zones span { flex: 1; text-align: center; }
.zones span + span { border-left: 1px solid var(--ink); }
.inner { position: relative; padding: 22px 26px 26px; }

.label { font: 600 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.bar a { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); padding: 7px 11px; }

h1 { font-family: 'Big Shoulders Display', var(--font); font-size: clamp(42px, 7.4vw, 88px); line-height: 0.92; font-weight: 800; text-transform: uppercase; margin: 8px 0 16px; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 56ch; margin: 0 0 24px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; padding: 12px 18px; border: 1.5px solid var(--ink); font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.cta:hover { color: var(--paper); opacity: 0.85; }
.cta.ghost { background: none; color: var(--ink); }
.cta.ghost:hover { color: var(--accent); border-color: var(--accent); opacity: 1; }

/* At a glance, like the general-specifications strip on a drawing. */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); margin: 38px 0 0; }
.glance > div { border-right: 1px solid var(--ink); padding: 11px 13px; min-width: 0; }
.glance > div:last-child { border-right: 0; }
.glance dd { margin: 4px 0 0; }
.glance b { display: block; font-size: clamp(17px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.glance small { display: block; margin-top: 4px; font: 500 11px/1.4 var(--mono); color: var(--muted); }

section { margin-top: 44px; }
.sh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; margin-bottom: 14px; }
.sh h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { border: 1px solid var(--ink); padding: 9px 11px; text-align: left; vertical-align: top; }
th { font: 600 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; background: var(--head); }
td.date { font: 500 13px/1.5 var(--mono); white-space: nowrap; width: 200px; }
td.role { font-weight: 600; }
td.item, td.qty { width: 56px; text-align: center; font: 600 12px/1.5 var(--mono); }

/* Title block = contact. */
.tb { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border: 2px solid var(--ink); margin-top: 44px; font: 500 11px/1.4 var(--mono); }
.tb > div { border-right: 1px solid var(--ink); padding: 9px 11px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.tb > div:last-child { border-right: 0; }
.tb .h { font-size: 9px; color: var(--muted); letter-spacing: 0.08em; }
.tb .name { font: 600 17px/1.2 var(--font); letter-spacing: -0.01em; }
.tb a { overflow-wrap: anywhere; }

/* Résumé request dialog: a small detail sheet that lifts in over the page. */
dialog.req { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 22px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); position: fixed; }
dialog.req::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--ink); pointer-events: none; }
dialog.req::backdrop { background: rgba(17, 17, 17, 0.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.req[open] { animation: req-in .34s cubic-bezier(.22, 1, .36, 1); }
dialog.req[open]::backdrop { animation: req-fade .34s ease; }
dialog.req.out { animation: req-out .2s ease forwards; }
dialog.req.out::backdrop { animation: req-fade .2s ease reverse forwards; }
@keyframes req-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes req-out { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes req-fade { from { opacity: 0; } to { opacity: 1; } }
.req-form, .req-done { position: relative; padding: 6px 8px 4px; }
.req-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.req-x { font: 400 24px/1 var(--font); background: none; border: 0; color: inherit; cursor: pointer; padding: 0 2px; }
.req-x:hover { color: var(--accent); }
.req h2 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.req h2:focus { outline: none; }
.req-lede { margin: 6px 0 20px; color: var(--muted); }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req-grid label { display: grid; gap: 6px; min-width: 0; }
.req-grid .wide { grid-column: 1 / -1; }
.req-grid i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.75; }
.req input, .req textarea { font: 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--ink); border-radius: 0; padding: 10px 11px; width: 100%; resize: vertical; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.req input:focus, .req textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.req [aria-invalid="true"] { border-color: var(--accent); background: #FDF4F3; }
.req .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req-status { min-height: 1.5em; margin: 14px 0 0; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.req-status.err { color: var(--accent); }
.req-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.req .cta { cursor: pointer; }
.req .cta:disabled { opacity: 0.55; cursor: progress; }
.req-stamp { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border: 2px solid var(--accent); color: var(--accent); font: 600 13px var(--mono); letter-spacing: 0.18em; text-transform: uppercase; transform: rotate(-4deg); animation: req-stamp .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes req-stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } to { opacity: 1; transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
  dialog.req[open], dialog.req[open]::backdrop, dialog.req.out, dialog.req.out::backdrop, .req-stamp { animation: none; }
}

@media (max-width: 860px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(2n) { border-right: 0; }
  .glance > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .tb { grid-template-columns: 1fr 1fr; }
  .tb > div:nth-child(2n) { border-right: 0; }
  .tb > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 560px) {
  .sheet { margin: 0; padding: 14px; border-width: 0; }
  .sheet::before { inset: 6px; }
  .zones { display: none; }
  .inner { padding: 18px 14px 20px; }
  td.date { width: auto; white-space: normal; }
  td.item, td.qty { width: 40px; }
  th, td { padding: 8px; }
  dialog.req { width: calc(100% - 20px); padding: 16px; }
  .req-grid { grid-template-columns: 1fr; }
  .req-actions .cta { width: 100%; justify-content: center; }
}
@media print {
  body { background: none; }
  .sheet { margin: 0; max-width: none; }
  .bar a, .ctas { display: none; }
}
