/* The Iron Academy pilot. Colours from The Iron Clinic tokens
   (~/Documents/GitHub/the-iron-clinic-brand/tokens.css); the font is a free
   Google Font, never The Iron Clinic's own licensed face. Square corners,
   no shadows, as on theironclinic.com. */
:root {
  --tic-crimson: #A30F2B;
  --tic-red: #96172E;
  --tic-red-hover: #990000;
  --tic-oxblood: #74040E;
  --tic-ink: #1D1D1B;
  --tic-slate: #676B6D;
  --tic-mist: #B3B5B6;
  --tic-paper: #FBFCFC;
  --tic-white: #FFFFFF;
  --tic-cell-70: rgba(163, 15, 43, 0.70);
  --tic-cell-45: rgba(163, 15, 43, 0.45);
  --tic-cell-25: rgba(163, 15, 43, 0.25);
  --tic-cell-12: rgba(163, 15, 43, 0.12);
  --font: "Outfit";
  color-scheme: light;
}
* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--tic-white); color: var(--tic-ink);
  font-family: var(--font), "Century Gothic", "Avenir Next", system-ui, sans-serif;
  font-size: 18px; line-height: 1.6; font-weight: 400;
}
a { color: var(--tic-red); }
a:hover { color: var(--tic-red-hover); }
a:focus-visible { outline: 2px solid var(--tic-red); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.pilot { background: var(--tic-ink); color: var(--tic-white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px 16px; }
.top { border-top: 6px solid var(--tic-red); border-bottom: 1px solid var(--tic-cell-12); padding: 14px 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tic-ink); font-weight: 500; font-size: 22px; letter-spacing: .02em; max-width: 760px; }
.cells { position: relative; width: 34px; height: 26px; flex: none; }
.cells i { position: absolute; width: 18px; height: 18px; border-radius: 50%; }
.cells i:nth-child(1) { left: 0; top: 4px; background: var(--tic-cell-70); }
.cells i:nth-child(2) { left: 9px; top: 0; background: var(--tic-cell-45); }
.cells i:nth-child(3) { left: 15px; top: 8px; background: var(--tic-crimson); opacity: .9; }

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(30px, 6vw, 42px); color: var(--tic-ink); margin: 8px 0 8px; }
h2 { font-size: clamp(22px, 4.4vw, 28px); color: var(--tic-red); margin: 36px 0 10px; display: flex; align-items: center; gap: 10px; }
p, ul, ol { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin: 0 0 6px; }
b { font-weight: 600; }

.ic { display: inline-block; flex: none; width: 26px; height: 26px; background: var(--tic-red);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

.kick { color: var(--tic-red); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; font-weight: 500; margin: 20px 0 0; }
.by { color: var(--tic-slate); margin: 0 0 4px; font-size: 16px; }
.reviewer { margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.ins { display: inline-block; border: 1.5px solid #d0021b; color: #b00018; background: #fff3f3; font-weight: 600; font-size: 13px; letter-spacing: .05em; padding: 0 6px; line-height: 1.6; }
.hero { display: block; width: 100%; border: 1px solid var(--tic-cell-12); }
.post .body > p:first-child { font-size: 20px; color: var(--tic-ink); }

h2.src { font-size: 14px; color: var(--tic-slate); text-transform: uppercase; letter-spacing: .12em; border-top: 1px solid var(--tic-cell-25); padding-top: 18px; }
.refs { font-size: 14px; color: var(--tic-slate); padding-left: 22px; overflow-wrap: anywhere; }

/* figures */
.fig { margin: 18px 0 22px; border: 1px solid var(--tic-cell-25); padding: 14px 16px; }
.fig figcaption { color: var(--tic-red); font-weight: 500; font-size: 16px; letter-spacing: .03em; margin: 0 0 12px; }
.gap .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; text-align: center; }
.gap .cell { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; color: var(--tic-slate); line-height: 1.3; }
.gap .cell .ic { width: 32px; height: 32px; background: var(--tic-slate); }
.gap .main { color: var(--tic-red); font-weight: 600; }
.gap .main .ic { background: var(--tic-red); }
@media (min-width: 640px) { .gap .row { grid-template-columns: repeat(6, 1fr); } .gap .clock { border-left: 1px dashed var(--tic-mist); border-right: 1px dashed var(--tic-mist); } }

.drow { margin: 0 0 14px; }
.dl { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.day { height: 54px; border: 1px solid var(--tic-cell-25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day .ic { width: 20px; height: 20px; }
.day.high, .sw { background: var(--tic-cell-12); }
.dn { font-size: 12px; color: var(--tic-slate); }
.dnote { font-size: 14px; color: var(--tic-slate); margin-top: 4px; }
.key { font-size: 13px; color: var(--tic-slate); }
.sw { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--tic-cell-25); vertical-align: middle; margin-right: 6px; }

.tl .steps { list-style: none; padding: 0; margin: 0; position: relative; }
.tl .steps li { position: relative; padding: 0 0 14px 28px; font-size: 15px; color: var(--tic-slate); line-height: 1.4; }
.tl .steps li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--tic-red); }
.tl .steps li:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--tic-red); }
.tl .steps b { display: block; color: var(--tic-ink); }
.unit { font-size: 13px; color: var(--tic-slate); margin: 4px 0 0; }
@media (min-width: 640px) {
  .tl .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .tl .steps li { padding: 24px 0 0; }
  .tl .steps li::before { left: 0; right: -10px; top: 6px; bottom: auto; width: auto; height: 2px; }
}
.drip { float: right; width: 120px; margin: 0 0 8px 16px; border: 0; padding: 0; }

/* home */
.lead { font-size: 20px; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards a { display: block; border: 1px solid var(--tic-cell-25); border-top: 4px solid var(--tic-red); padding: 16px; text-decoration: none; color: var(--tic-ink); }
.cards a:hover { background: var(--tic-paper); }
.cards b { display: block; font-size: 22px; font-weight: 500; margin: 4px 0 6px; color: var(--tic-ink); }
.cards .kick { display: block; margin: 0; font-size: 12px; }
.cards .desc { display: block; color: var(--tic-slate); font-size: 16px; }

/* fonts preview */
main:has(.fonts) { max-width: 1240px; }
.font-col { border-top: 1px solid var(--tic-cell-25); margin-top: 24px; }
.frames { display: grid; gap: 16px; }
@media (min-width: 900px) { .frames { grid-template-columns: 1fr 1fr; } }
.frames figure { margin: 0; }
.frames figcaption { font-size: 14px; color: var(--tic-slate); margin: 0 0 6px; }
.frames iframe { width: 100%; height: 640px; border: 1px solid var(--tic-mist); background: var(--tic-white); }

.foot { border-top: 1px solid var(--tic-cell-12); padding: 20px 16px 32px; text-align: center; font-size: 14px; }
.foot a { color: var(--tic-slate); text-decoration: none; }
