/* Adrien Sabathier — styles for adriensabathier.neocities.org */
:root {
  --chrome: #2a5bb0;
  --chrome-light: #7fa6dc;
  --face: #ece9e1;
  --bar: #d4d0c8;
  --btn: #e4e1d9;
  --dark: #4a4a4a;
  --mid: #7a7a7a;
  --ink: #111;
  --link: #0b3d91;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #ffffff;
  color: var(--ink);
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
a { color: var(--link); }

/* pixel cursors */
html, body { cursor: url('images/cursor-arrow.png') 0 0, auto; }
a, button, .book, .win-btns button, .strip button, .icon, label { cursor: url('images/cursor-hand.png') 5 0, pointer; }
.win-title { cursor: url('images/cursor-arrow.png') 0 0, move; }
input, textarea { cursor: text; }
a:hover { color: #c0392b; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid #f0b429; outline-offset: 1px; }
.vt { font-family: 'VT323', monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the "screen" (1440 × 910 design, scaled to fit) ---------- */
.screen-wrap { position: relative; overflow: hidden; }
.screen { position: relative; width: 1440px; height: 910px; transform-origin: 0 0; }

/* ---------- windows ---------- */
.win {
  position: absolute;
  background: var(--face);
  border: 2px solid; border-color: #fff var(--dark) var(--dark) #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35);
}
.win.hidden { display: none; }
.win-title {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 4px 6px;
  background: linear-gradient(90deg, var(--chrome), var(--chrome-light));
  color: #fff; cursor: move; user-select: none;
}
.win-title h1, .win-title h2, .win-title p { margin: 0; font-size: 12px; font-weight: bold; }
.win-btns { display: flex; gap: 3px; }
.win-btns button, .win-btns span {
  width: 16px; height: 14px; padding: 0;
  background: var(--bar); color: #000; font: 10px/11px Verdana, sans-serif; text-align: center;
  border: 1px solid; border-color: #fff var(--dark) var(--dark) #fff; cursor: pointer;
}
.win-btns button:active { border-color: var(--dark) #fff #fff var(--dark); }
.inset { margin: 6px; background: #fff; border: 2px solid; border-color: var(--mid) #fff #fff var(--mid); }
.win-status { margin: 0 8px 6px; font-size: 11px; color: #333; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  background: var(--btn); color: #000; text-decoration: none; font: 12px Verdana, sans-serif;
  border: 2px solid; border-color: #fff var(--dark) var(--dark) #fff; cursor: pointer;
}
.btn:active { border-color: var(--dark) #fff #fff var(--dark); }
.btn:hover { color: #000; background: #f0ede6; }

/* ---------- desktop icons ---------- */
.icons { position: absolute; left: 18px; top: 20px; width: 96px; display: flex; flex-direction: column; gap: 16px; align-items: center; z-index: 1; }
.icon { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #1c1c1c; font-size: 11px; text-align: center; padding: 2px; }
.icon:hover span { background: var(--chrome); color: #fff; }

/* ---------- welcome ---------- */
.welcome-body { padding: 14px 14px 6px; display: flex; gap: 14px; }
.welcome-foot { display: flex; justify-content: flex-end; padding: 0 14px 12px; }
.desk-art { position: absolute; z-index: 1; }
.desk-art svg { display: block; }
.portrait { flex: 0 0 120px; width: 120px; height: 150px; object-fit: cover; border: 1px solid var(--mid); }
.welcome-body h1 { margin: 0 0 6px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 22px; color: #1c3f7a; }
.welcome-body p { margin: 0 0 6px; line-height: 1.6; }

/* ---------- map ---------- */
.map-box { background: #dfe9ef; }
.map-box svg { display: block; max-width: 100%; height: auto; }
.map-foot { display: flex; justify-content: space-between; margin: 0 8px 7px; font-size: 11px; color: #333; }

/* ---------- unige ---------- */
.unige-body { padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.unige-body img { width: 190px; height: auto; }
.unige-body p { margin: 0; font-size: 11px; line-height: 1.4; color: #333; }

/* ---------- file list (My Writing) ---------- */
.filelist-head, .file { display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; }
.filelist-head { background: var(--bar); font-size: 11px; }
.filelist-head span { padding: 3px 8px; }
.filelist-head span:first-child { border-right: 1px solid var(--mid); }
.file { padding: 6px 8px; text-decoration: none; color: var(--ink); }
.file:hover, .file:focus-visible { background: #dce8fb; color: var(--ink); }
.file > span:first-child { display: flex; align-items: center; gap: 8px; }
.file .vt { font-size: 17px; color: #444; }

/* ---------- photos window ---------- */
.thumbs { margin: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumbs a { display: block; height: 76px; border: 1px solid var(--mid); overflow: hidden; background: #c9c6be; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .more { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #333; text-decoration: none; }

/* ---------- bookshelf ---------- */
.shelf-wood {
  margin: 6px; padding: 10px 10px 0;
  background-color: #5b3a22;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 11px), linear-gradient(180deg, #6e4a2e, #4e3019);
  border: 2px solid; border-color: #3f2a19 #9a6d48 #9a6d48 #3f2a19;
  box-shadow: inset 0 0 18px rgba(0,0,0,.45);
}
.shelf-label { margin: 0 0 4px; font-family: 'Silkscreen', monospace; font-size: 10px; color: #f3dfb8; }
.shelf-row { display: flex; align-items: flex-end; gap: 3px; height: 168px; padding: 0 4px; }
.shelf-row svg { margin-left: auto; flex: 0 0 auto; }
.plank { height: 10px; margin: 0 -10px 12px; background: linear-gradient(180deg, #a77a52, #6b4529); box-shadow: 0 4px 6px rgba(0,0,0,.45); }
.book {
  padding: 0; border: 1px solid rgba(0,0,0,.45); border-radius: 2px 2px 0 0; cursor: pointer;
  background-image: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 30%, rgba(0,0,0,.05) 65%, rgba(0,0,0,.32));
  box-shadow: inset 0 9px 0 -6px rgba(255,214,120,.85), inset 0 -9px 0 -6px rgba(255,214,120,.85);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: margin .15s ease;
}
.book:hover { margin-bottom: 6px; }
.book.picked { margin-bottom: 18px; }
.book span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: bold; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-info { margin: 0 6px 6px; background: #fffdf2; border: 2px solid; border-color: var(--mid) #fff #fff var(--mid); padding: 10px 12px; min-height: 76px; }
.book-info .vt { margin: 0; font-size: 15px; color: #777; }
.book-info .t { margin: 2px 0 0; font-family: Georgia, serif; font-size: 15px; font-weight: bold; color: #1c1c1c; }
.book-info .a { margin: 1px 0 0; font-size: 12px; color: #444; }

/* ---------- sticky note ---------- */
.sticky { position: absolute; width: 210px; padding: 14px 16px 18px; background: #fff59a; box-shadow: 2px 3px 6px rgba(0,0,0,.35); transform: rotate(2deg); z-index: 6; }
.sticky p { margin: 0; }
.sticky .big { margin-bottom: 8px; font-size: 17px; font-weight: bold; line-height: 1.25; color: #1c1c1c; }
.sticky a { color: #1c3f7a; }

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 50px; z-index: 1000;
  background: var(--bar); border-top: 2px solid #fff;
  display: flex; align-items: center; gap: 6px; padding: 0 6px; overflow-x: auto;
}
.taskbar a, .taskbar .clock { flex: 0 0 auto; }
.start, .tab {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px;
  background: var(--btn); color: #000; text-decoration: none; font-size: 13px; white-space: nowrap;
  border: 2px solid; border-color: #fff var(--dark) var(--dark) #fff;
}
.start { height: 38px; padding: 0 14px; font-weight: bold; font-size: 14px; }
.tab[aria-current="page"] { background: #fff; font-weight: bold; border-color: var(--dark) #fff #fff var(--dark); }
.start[aria-current="page"] { background: #fff; border-color: var(--dark) #fff #fff var(--dark); }
.start:hover, .tab:hover { color: #000; background: #f0ede6; }
.sep { width: 2px; height: 34px; border-left: 1px solid var(--mid); border-right: 1px solid #fff; flex: 0 0 auto; }
.spacer { flex: 1; }
.clock { height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid; border-color: var(--mid) #fff #fff var(--mid); font-size: 12px; white-space: nowrap; }
.clock .vt { font-size: 20px; }
body { padding-bottom: 52px; }

/* ---------- reading windows (posts, about, resume, gallery) ---------- */
.reader { display: flex; flex-direction: column; }
.toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; flex-wrap: wrap; }
.toolbar .path { margin-left: auto; font-size: 11px; color: #444; }
.scroll { flex: 1; min-height: 0; margin: 0 8px 8px; background: #fff; border: 2px solid; border-color: var(--mid) #fff #fff var(--mid); overflow-y: auto; }
.prose { max-width: 640px; margin: 0 auto; padding: 36px 24px 48px; font-size: 14px; line-height: 1.75; }
.prose .byline { margin: 0; font-size: 18px; color: #555; }
.prose h1 { margin: 4px 0 18px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 34px; line-height: 1.15; color: #1c3f7a; }
.prose h2 { margin: 28px 0 10px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 20px; color: #1c3f7a; }
.prose p { margin: 0 0 14px; }
.prose figure { margin: 22px 0; }
.prose figure img { width: 100%; height: auto; border: 1px solid var(--mid); background: #e4e1d9; }
.prose figcaption { margin-top: 6px; font-size: 11px; color: #555; text-align: center; font-style: italic; }
.prose .field-note { color: #555; }
.prose .dialogue { margin: 0 0 14px; padding: 8px 14px; background: #f4f2ec; border: 1px solid var(--bar); font-family: 'Courier New', monospace; font-size: 13px; }
.prose .dialogue p { margin: 4px 0; }
.prose .video-placeholder { aspect-ratio: 16 / 9; background: #ece9e1; border: 1px dashed var(--mid); display: flex; align-items: center; justify-content: center; color: #555; font-size: 12px; }
.prose .video-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.post-foot { margin-top: 28px; padding-top: 14px; border-top: 1px dotted #9a9a9a; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; flex-wrap: wrap; }
.more-list a { display: block; padding: 7px 8px; border-bottom: 1px dotted #b0aca2; text-decoration: none; color: var(--ink); }
.more-list a:hover { background: #dce8fb; }
.more-list span { display: block; font-size: 12px; }
.more-list .vt { font-size: 16px; color: #555; }
.about-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; }
.about-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--mid); }
.pdf-frame { width: 100%; height: 100%; border: 0; display: block; background: #8a8a8a; }

/* about hero: portrait + scattered pixel icons */
.about-hero { position: relative; height: 270px; margin: 0 0 22px; }
.about-portrait { position: absolute; left: 50%; top: 10px; transform: translateX(-50%) rotate(-1.5deg); width: 220px; height: 220px; object-fit: cover; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--mid), 3px 3px 0 rgba(0,0,0,.25); }
.px { position: absolute; display: block; }
.px svg { display: block; }
.px-monitor { left: 0; top: 40px; }
.px-flag { right: 8px; top: 0; }
.px-pointer { right: 120px; bottom: 0; }

/* teaching */
.teach-title { padding: 18px 24px 16px; }
.teach-title h1 { margin: 0 0 4px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 40px; line-height: 1.1; color: #1c3f7a; }
.teach-title p { margin: 0; font-size: 13px; color: #444; }
.teach-title .small-links { margin-top: 10px; font-size: 12px; }
.teach-body { padding: 18px 26px 10px; font-size: 13px; line-height: 1.6; }
.teach-h { margin: 0 0 4px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 26px; line-height: 1.2; color: #1c3f7a; }
.course-note { margin: 0 0 6px; font-size: 12px; color: #555; }
.course { padding: 12px 0; border-bottom: 1px dotted #9a9a9a; }
.course:last-child { border-bottom: 0; }
.course h3 { margin: 0 0 4px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 18px; line-height: 1.3; color: #1c3f7a; }
.course p { margin: 0; }
.course .kind { font-weight: bold; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.course .where { font-size: 12px; color: #555; margin-top: 2px; }
.course .extra { font-size: 13px; margin-top: 4px; }
.year { font-size: 17px; font-weight: normal; line-height: 1.2; padding: 0 6px; background: var(--bar); border: 1px solid; border-color: #fff var(--mid) var(--mid) #fff; }
.course .kind .year:first-of-type { margin-left: 4px; }

/* blog list */
.post-rows { display: flex; flex-direction: column; border-top: 1px dotted #9a9a9a; }
.post-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 12px 6px; border-bottom: 1px dotted #9a9a9a; text-decoration: none; color: var(--ink); }
.post-row:hover { background: #dce8fb; color: var(--ink); }
.post-row img { grid-row: 1 / 3; width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--mid); }
.pr-title { font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 17px; font-weight: bold; color: #1c3f7a; line-height: 1.3; }
.pr-date { font-size: 18px; color: #444; }
.pr-meta { grid-column: 2 / 4; font-size: 11px; color: #555; }

/* gallery slideshow */
.viewer { flex: 1; min-height: 0; margin: 0 8px; background: #1c1c1c; border: 2px solid; border-color: var(--mid) #fff #fff var(--mid); display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.strip { display: flex; gap: 6px; overflow-x: auto; margin: 8px; padding-bottom: 4px; }
.strip button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; background: #c9c6be; cursor: pointer; }
.strip button img { width: 100%; height: 100%; object-fit: cover; }
.strip button[aria-current="true"] { border-color: var(--chrome); }

/* ---------- phones & small screens: stack everything ---------- */
@media (max-width: 899px) {
  .screen-wrap { height: auto !important; overflow: visible; }
  .screen { width: auto; height: auto; transform: none !important; padding: 12px; display: flex; flex-direction: column; gap: 14px; }
  .win, .sticky { position: static !important; width: auto !important; height: auto !important; transform: none; }
  .win-title { cursor: default; }
  .icons { position: static; width: auto; flex-direction: row; flex-wrap: wrap; justify-content: space-around; gap: 12px; order: -1; }
  .welcome-body { flex-direction: column; }
  .portrait { width: 140px; }
  .reader .scroll, .viewer { height: auto; overflow: visible; }
  .viewer { min-height: 240px; }
  .pdf-frame { height: 70vh; }
  .prose { padding: 20px 14px 28px; }
  .prose h1 { font-size: 26px; }
  .hide-mobile { display: none !important; }
  .desk-art { position: static !important; align-self: center; }
  #welcome { order: 1; } #unige { order: 2; } #writing { order: 3; } #map { order: 4; }
  #photos { order: 5; } #shelf { order: 6; } .screen > .sticky { order: 7; }
  .post-row { grid-template-columns: 84px minmax(0, 1fr); }
  .about-hero { height: 230px; }
  .about-portrait { width: 170px; height: 170px; }
  .px-monitor { top: 110px; } .px-monitor svg { width: 99px; height: 77px; }
  .px-flag svg { width: 77px; height: 63px; }
  .px-pointer { right: 10px; } .px-pointer svg { width: 51px; height: 57px; }
  .post-row img { width: 84px; height: 60px; }
  .pr-date, .pr-meta { grid-column: 2; }
  .taskbar { height: 46px; }
  .start, .tab { height: 32px; padding: 0 10px; font-size: 12px; }
}
