/* ---------------------------------------------------------------------------
   sheet.css — shared styling for the printable classroom sheets
   (handout.html, activity.html)

   Both sheets are one landscape letter page. On screen they sit on a desk
   background with a Print button; on paper the chrome disappears and the
   sheet is the page. Palette and type match the Genre Machine design
   project: slate ink, teal, amber.
--------------------------------------------------------------------------- */

:root {
  --ink: #1e293b;
  --teal: #0f4c5c;
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-tint: #fffbeb;
  --muted: #64748b;
  --slate: #475569;
  --rule: #94a3b8;
  --edge: #cbd5e1;
  --tint: #f1f5f9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #d9d5cd;
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* --- screen chrome ------------------------------------------------------ */

.chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 16px 4px;
}

.chrome a,
.chrome button {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.chrome button {
  background: var(--ink);
  color: #fff;
}

.chrome a:hover { background: var(--tint); }
.chrome button:hover { background: var(--teal); border-color: var(--teal); }

.chrome .hint {
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  color: #5c574e;
  margin: 2px 0 0;
}

/* --- the sheet ---------------------------------------------------------- */

.sheet {
  width: 11in;
  height: 8.5in;
  margin: 18px auto 40px;
  padding: 0.35in 0.45in;
  background: #fff;
  box-shadow: 0 3px 16px rgba(20, 20, 19, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.13in;
  overflow: hidden;
}

/* Narrow screens: shrink the sheet rather than scroll it sideways. */
@media screen and (max-width: 1140px) { .sheet { zoom: 0.78; } }
@media screen and (max-width: 900px)  { .sheet { zoom: 0.6; } }
@media screen and (max-width: 700px)  { .sheet { zoom: 0.45; } }

/* --- masthead ----------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35in;
  border-bottom: 2.5px solid var(--ink);
  padding-bottom: 0.11in;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .marks { display: flex; align-items: flex-end; }
.brand .marks svg:last-child { margin-left: -6px; margin-bottom: -13px; }

.brand h1 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.brand .strip {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.fields {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding-bottom: 2px;
}

.field { display: flex; flex-direction: column; gap: 2px; }

.field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field i {
  display: block;
  border-bottom: 1.5px solid var(--ink);
  height: 18px;
}

/* --- section headings --------------------------------------------------- */

.head {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.tag {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}

.tag.teal { background: var(--teal); }
.tag.amber { background: var(--amber); }

.head h2 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.head .note {
  font-size: 12px;
  color: var(--muted);
}

/* --- tables ------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  border: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
}

thead th {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 7px;
  background: var(--ink);
  color: #fff;
}

tbody th {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 7px;
  background: var(--tint);
}

tbody th em {
  display: block;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--slate);
  margin-top: 1px;
}

tbody td {
  padding: 4px 6px;
  font-size: 10.2px;
  line-height: 1.22;
}

tbody td b {
  display: block;
  font-size: 11px;
  margin-bottom: 1px;
}

/* --- print -------------------------------------------------------------- */

@page {
  size: letter landscape;
  margin: 0;
}

@media print {
  body { background: #fff; }
  .chrome { display: none !important; }
  .sheet {
    zoom: 1 !important;
    width: 11in;
    height: 8.5in;
    margin: 0;
    box-shadow: none;
    page-break-after: avoid;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
