/* michaelkbell.com
   Zune HD's screen inside a Braun device body.
   Warm charcoal, round hardware buttons, one orange control, light lowercase type. */

:root {
  --room: #141311;        /* what the device sits on */
  --body: #1e1d1b;        /* device shell */
  --panel: #262522;       /* the screen */
  --ghost: #2e2d29;       /* giant background word */
  --key: #3a3834;         /* hardware buttons, rules */
  --grille: #3a3834;
  --text: #ece9e2;
  --sub: #95918a;
  --cream: #d9d5cc;       /* selected button */
  --orange: #e8601c;      /* the one Braun orange */
  --font: "Segoe UI", "Segoe UI Variable Text", "Selawik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(0px, 3vw, 40px);
  background: var(--room);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration-color: var(--sub); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Device shell ---------- */
.device {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--pad);
  background: var(--body);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 #2c2b28;
}

/* ---------- Top: name + speaker grille ---------- */
.top {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: end;
}
.name {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: lowercase;
}
.name a { text-decoration: none; }
.role-line {
  margin: 12px 0 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--sub);
}
.grille {
  height: 132px;
  border-radius: 14px;
  background-color: var(--body);
  background-image: radial-gradient(circle, var(--grille) 0 2.4px, transparent 2.8px);
  background-size: 12px 12px;
  background-position: 6px 6px;
}

/* ---------- Hardware buttons ---------- */
.keys {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  margin: clamp(32px, 5vw, 48px) 0 clamp(24px, 4vw, 36px);
  padding: 0;
  list-style: none;
}
.key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--sub);
  text-transform: lowercase;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.key .cap {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--key);
  box-shadow: 0 3px 0 #11100f, inset 0 1px 0 #4a4843;
  transition: transform .08s, box-shadow .08s;
}
.key:hover { color: var(--text); }
.key:active .cap { transform: translateY(2px); box-shadow: 0 1px 0 #11100f, inset 0 1px 0 #4a4843; }
.key[aria-selected="true"], .key[aria-current="page"] { color: var(--text); }
.key[aria-selected="true"] .cap, .key[aria-current="page"] .cap { background: var(--cream); box-shadow: 0 3px 0 #11100f, inset 0 1px 0 #fff; }
.key.orange .cap { background: var(--orange); box-shadow: 0 3px 0 #7a300b, inset 0 1px 0 #f38a52; }
.key.orange[aria-selected="true"] .cap { outline: 2px solid var(--cream); outline-offset: 3px; }
.key:focus-visible { outline: none; }
.key:focus-visible .cap { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- Screen ---------- */
.screen {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(36px, 5vw, 56px);
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45);
}
/* Zune HD's oversized section word, cropped by the screen edge */
.ghost {
  position: absolute;
  top: -.18em;
  left: -.04em;
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: var(--ghost);
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
}
.js .ghost.move { animation: drift .5s cubic-bezier(.1,.9,.2,1); }
@keyframes drift { from { transform: translateX(80px); opacity: 0; } to { transform: none; opacity: 1; } }

.item { position: relative; max-width: 68ch; padding-top: clamp(64px, 10vw, 120px); }
.js .tabbed .item { display: none; }
.js .tabbed .item.on { display: block; animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.tabbed .item > h2 { display: none; }

/* ---------- Content ---------- */
.intro { margin: 0 0 32px; font-size: 21px; font-weight: 300; line-height: 1.5; }

.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--key); }
.list li { border-bottom: 1px solid var(--key); }
.list a, .list button {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
  font: inherit;
  font-size: 26px;
  font-weight: 300;
  text-transform: lowercase;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.list small { font-size: 15px; font-weight: 400; color: var(--sub); text-transform: none; text-align: right; }
.list a:hover, .list button:hover { color: #fff; }
.list a:hover small, .list button:hover small { color: var(--text); }

.job { margin: 0 0 40px; }
.job h3 { margin: 0; font-size: 30px; font-weight: 300; line-height: 1.2; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.job .meta { margin: 2px 0 12px; color: var(--sub); }
.job p { margin: 0 0 10px; }
.job ul { margin: 10px 0 0; padding-left: 20px; }
.job li { margin-bottom: 6px; }
.job li::marker { color: var(--sub); }
.more { display: inline-block; margin-top: 6px; color: var(--sub); }
.more:hover { color: var(--text); }

.skills { display: grid; grid-template-columns: 9em 1fr; gap: 16px 24px; margin: 0; }
.skills dt { font-size: 24px; font-weight: 300; line-height: 1.25; text-transform: lowercase; }
.skills dd { margin: 0; padding-top: 3px; }

.contact p { margin: 0 0 28px; font-size: 21px; font-weight: 300; }

/* ---------- Project pages ---------- */
.case { position: relative; max-width: 68ch; padding-top: clamp(64px, 10vw, 120px); }
.case h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); font-weight: 200; line-height: 1.1; }
.case .meta { margin: 6px 0 28px; color: var(--sub); }
.case h2 { margin: 48px 0 12px; font-size: 28px; font-weight: 300; text-transform: lowercase; }
.case p { margin: 0 0 14px; }
.case ul { margin: 0 0 14px; padding-left: 20px; }
.case li { margin-bottom: 6px; }
.case li::marker { color: var(--sub); }

.shot { margin: 28px 0; }
.shot img, .shot .slot { border-radius: 10px; border: 1px solid var(--key); }
.shot .slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 16px;
  color: var(--sub);
  text-align: center;
  background: var(--body);
}
.shot figcaption { margin-top: 8px; font-size: 15px; color: var(--sub); }

.diagram { margin: 24px 0; padding: 20px; background: var(--body); border-radius: 10px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }

/* Fill-ins still to replace. Delete this rule when they're gone. */
.todo { background: #ff0; color: #000; outline: 1px dashed #000; }

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  body { padding: 0; }
  .device { border-radius: 0; }
  .top { grid-template-columns: 1fr; }
  .grille { height: 44px; order: -1; }
  .keys { justify-content: space-between; gap: 0; }
  .key { font-size: 13px; }
  .key .cap { width: 46px; height: 46px; }
  .screen { min-height: 0; }
  .intro, .contact p { font-size: 18px; }
  .list a, .list button { font-size: 22px; }
  .list small { font-size: 14px; }
  .job h3 { font-size: 26px; }
  .skills { grid-template-columns: 1fr; gap: 0; }
  .skills dd { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .ghost.move, .js .tabbed .item.on { animation: none; }
  .key .cap { transition: none; }
}

/* ---------- Print: plain pages ---------- */
@media print {
  body { background: #fff; color: #000; padding: 0; font-size: 11pt; }
  .device, .screen { background: none; box-shadow: none; padding: 0; border-radius: 0; min-height: 0; }
  .grille, .keys, .ghost, .list, .more { display: none; }
  .role-line, .job .meta, .case .meta { color: #444; }
  .js .tabbed .item { display: block; animation: none; padding-top: 0; }
  .tabbed .item > h2 { display: block; margin: 18pt 0 8pt; font-size: 16pt; font-weight: 300; text-transform: lowercase; }
  .case { padding-top: 12pt; }
  .job { break-inside: avoid; margin-bottom: 14pt; }
  .job h3 { font-size: 14pt; }
  .todo { background: none; outline: 0; }
  a { color: #000; }
}
