/* dogukaan.dev: the page is a Mac desktop. On phones it becomes a home screen. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/silkscreen-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

:root {
  --moss: #24382f;
  --moss-deep: #1b2c24;
  --mint: #8ed18f;
  --select: #0a64d8;

  --win: #f7f7f5;
  --win-bar: #ecece9;
  --win-line: rgba(28, 36, 32, .12);
  --ink: #1c2420;
  --ink-2: #5b6660;
  --link: #2b6b44;
  --hover: #e9f2eb;
  --light-off: #d3d3d0;

  --menu-bg: rgba(246, 246, 244, .82);
  --menu-ink: #1c2420;

  --text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Instrument Sans", system-ui, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;

  --menubar: 30px;
  --ease-pop: cubic-bezier(.2, .9, .25, 1.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --win: #262928;
    --win-bar: #2f3231;
    --win-line: rgba(255, 255, 255, .1);
    --ink: rgba(255, 255, 255, .92);
    --ink-2: rgba(255, 255, 255, .58);
    --link: #8ed18f;
    --hover: rgba(142, 209, 143, .1);
    --light-off: #4a4d4c;
    --menu-bg: rgba(40, 43, 42, .82);
    --menu-ink: rgba(255, 255, 255, .92);
  }
  .notes { background: #2b2a25 !important; }
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(142, 209, 143, .11) 1px, transparent 1.3px) 0 0 / 14px 14px,
    radial-gradient(120% 90% at 30% 10%, #30503f 0%, var(--moss) 45%, var(--moss-deep) 100%) fixed;
  background-color: var(--moss);
  min-height: 100vh;
  overflow-x: hidden;
}
img.pixel { image-rendering: pixelated; }
a { color: var(--link); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--win); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 40px; }

/* ---------- Menu bar ---------- */
.menubar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--menubar);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  font-family: var(--system); font-size: 13.5px; color: #fff;
  background: rgba(18, 28, 23, .5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
}
.menus, .status { display: flex; align-items: center; height: 100%; }
.menu { position: relative; height: 100%; display: flex; align-items: center; }
.menu-title {
  height: 24px; padding: 0 10px; border: 0; border-radius: 5px; background: none; cursor: default;
  display: inline-flex; align-items: center; color: #fff;
}
.menu-title--name { font-weight: 700; }
.menu-title[aria-expanded="true"], .menu-title:hover { background: rgba(255, 255, 255, .18); }
.status-item { padding: 0 8px; }
.clock { padding: 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-city { opacity: .7; margin-right: 4px; }

.menu-panel {
  position: absolute; top: calc(100% + 1px); left: 0; min-width: 230px;
  margin: 0; padding: 5px; list-style: none;
  background: var(--menu-bg); color: var(--menu-ink);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  border-radius: 10px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .28);
  font-size: 13.5px;
}
.menu--right .menu-panel { left: auto; right: 0; }
.menu-panel li > a, .menu-panel li > button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 4px 10px; border: 0; border-radius: 5px; background: none;
  color: inherit; text-decoration: none; text-align: left; cursor: default; line-height: 1.45;
}
.menu-panel li > a:hover, .menu-panel li > button:hover,
.menu-panel li > a:focus-visible, .menu-panel li > button:focus-visible { background: var(--select); color: #fff; outline: none; }
.menu-panel img { width: 16px; height: 16px; border-radius: 4px; }
.menu-panel .sep { height: 1px; margin: 5px 10px; background: var(--win-line); }
/* MenuUtils modules in the menu bar: each panel is the real dropdown, arrow and shadow included */
.mu-modules { display: flex; align-items: center; height: 100%; }
.mu-modules.is-collapsed { display: none; }
.mu-modules.is-revealing .menu-title { animation: mu-in .32s var(--ease-pop) both; }
.mu-modules.is-revealing .menu:nth-child(2) .menu-title { animation-delay: .03s; }
.mu-modules.is-revealing .menu:nth-child(3) .menu-title { animation-delay: .06s; }
.mu-modules.is-revealing .menu:nth-child(4) .menu-title { animation-delay: .09s; }
@keyframes mu-in { from { opacity: 0; transform: translateX(14px); } }
.hider {
  height: 24px; padding: 0 7px; border: 0; border-radius: 5px; background: none; color: #fff;
  display: inline-flex; align-items: center; cursor: default;
}
.hider:hover { background: rgba(255, 255, 255, .18); }
.hider svg { transition: transform .25s; }
.hider[aria-expanded="false"] svg { transform: rotate(180deg); }
.menu-panel--module {
  top: calc(100% - 8px); left: 50%; transform: translateX(-50%);
  width: 340px; min-width: 0; padding: 0; border-radius: 0;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  text-align: center;
}
/* The panel screenshots were captured over a grey backdrop; lift them back to a light panel */
.menu-panel--module img { display: block; width: 340px; height: auto; filter: brightness(1.17) contrast(1.04); }
.mu-chip {
  margin-top: -20px; padding: 5px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--menu-bg); color: var(--menu-ink); font-family: var(--system); font-size: 12.5px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .2);
}
.mu-chip::after { content: " \2192"; }
.mu-chip:hover, .mu-chip:focus-visible { background: var(--select); color: #fff; outline: none; }
.menu-panel--popover { width: 280px; padding: 14px 16px 16px; border-radius: 12px; }
.menu-panel--popover p { margin: 0 0 12px; line-height: 1.45; }

/* ---------- Windows ---------- */
.desktop { position: relative; min-height: max(100vh, 760px); }

.window {
  position: absolute;
  background: var(--win);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .45), 0 12px 30px rgba(0, 0, 0, .22), 0 30px 70px rgba(0, 0, 0, .3);
  transition: box-shadow .2s;
}
.window:focus { outline: none; }
.window:not(.is-front) { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .2); }
.window:not(.is-front) .light { background: var(--light-off); }
.window:not(.is-front) .window-title { opacity: .55; }

.titlebar {
  position: relative; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--win-bar); border-bottom: 1px solid var(--win-line);
  cursor: default; user-select: none; -webkit-user-select: none; touch-action: none;
}
.window-title { margin: 0; font-family: var(--system); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lights { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.light { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; display: block; position: relative; }
.light--close { background: #ff5f57; cursor: default; }
.light--min { background: #febc2e; }
.light--zoom { background: #28c840; }
.lights:hover .light--close::after { content: ""; position: absolute; inset: 3px;
  background: linear-gradient(45deg, transparent 43%, rgba(0, 0, 0, .55) 43% 57%, transparent 57%),
              linear-gradient(-45deg, transparent 43%, rgba(0, 0, 0, .55) 43% 57%, transparent 57%); }

/* About */
.window--about { left: clamp(24px, 7vw, 150px); top: 76px; width: min(620px, calc(100vw - 48px)); }
.about { padding: 42px 46px 38px; }
.about h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 4.6vw, 60px); line-height: .98; letter-spacing: -.035em; font-weight: 700;
}
.lede { margin: 0 0 28px; max-width: 30ch; font-size: 20px; line-height: 1.4; color: var(--ink-2); }
.facts {
  display: grid; grid-template-columns: auto 1fr; gap: 9px 24px;
  margin: 0; padding-top: 20px; border-top: 1px solid var(--win-line); font-size: 15px;
}
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }

/* Applications */
.window--apps {
  left: max(calc(clamp(24px, 7vw, 150px) + min(620px, 100vw - 48px) + 24px), calc(100vw - 540px - clamp(140px, 15vw, 280px)));
  top: 430px; width: 540px;
}

.app-list { margin: 0; padding: 6px; list-style: none; }
.app-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 11px 12px; border-radius: 8px; color: inherit; text-decoration: none;
}
.app-row:hover { background: var(--hover); }
.app-row img { width: 44px; height: 44px; border-radius: 10px; }
.app-row strong { display: block; font-size: 15.5px; font-weight: 600; }
.app-row small { display: block; color: var(--ink-2); font-size: 13.5px; }
.app-row em { font-style: normal; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
img.tile { background: #e6f3e4; padding: 6px; }

/* App windows */
.window--info { width: min(720px, calc(100vw - 48px)); }
.info { display: grid; grid-template-columns: 250px 1fr; }
.info-shot { margin: 0; display: grid; place-items: center; overflow: hidden; min-height: 100%; }
.info-shot img { display: block; max-width: 100%; height: auto; }
.info-shot--zerre { background: #dff0dc; padding: 20px; }
.info-shot--zerre img { width: 210px; }
.info-shot--menuutils { background: linear-gradient(160deg, #3a3f52, #1f2230); padding: 24px 22px 0; align-items: end; }
.info-shot--menuutils img { width: 190px; }
.info-shot--glean { background: #f3ede6; padding: 26px 30px 0; align-items: end; }
.info-shot--glean img { width: 180px; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 6px #1d1d1f; margin-top: 6px; }
.info-text { padding: 28px 32px 30px; }
.info-icon { width: 56px; height: 56px; border-radius: 13px; }
.info-icon.pixel { background: #e6f3e4; padding: 8px; }
.info-text h2 { margin: 14px 0 2px; font-size: 30px; letter-spacing: -.025em; line-height: 1.05; }
.info-tag { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.info-text p { line-height: 1.5; font-size: 15px; max-width: 46ch; }
.info-aside { color: var(--ink-2); font-size: 14px !important; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 18px 0 22px; padding-top: 14px; border-top: 1px solid var(--win-line); font-size: 14px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* About-me windows: a note, a résumé and a community folder */
.about-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.about-more .btn { gap: 8px; padding: 6px 13px 6px 7px; font-weight: 500; }
.about-more img { width: 22px; height: 22px; border-radius: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Sized to their content: the note is a narrow page that fits without scrolling,
   the résumé and community folder are wide so long rows and photos have room */
.window--notes { width: min(600px, calc(100vw - 48px)); }
.window--resume { width: min(880px, calc(100vw - 48px)); }
.window--community { width: min(900px, calc(100vw - 48px)); }
.window--doc .doc { max-height: max(420px, calc(100vh - 176px)); overflow-y: auto; overscroll-behavior: contain; }
.doc h3 {
  margin: 30px 0 4px; padding-top: 18px; border-top: 1px solid var(--win-line);
  font-family: var(--pixel); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--link);
}

.notes { padding: 34px 44px 38px; background: #fffdf4; font-size: 17px; line-height: 1.62; }
.notes h2 { margin: 0; font-size: 30px; letter-spacing: -.025em; line-height: 1.1; }
.notes-date { margin: 4px 0 22px; color: var(--ink-2); font-size: 14px; }
.notes p { max-width: 52ch; margin: 0 0 14px; }
.notes-sign { color: var(--ink-2); }

.resume { padding: 34px 40px 38px; font-size: 15px; }
.resume-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.resume h2 { margin: 0; font-size: 30px; letter-spacing: -.025em; line-height: 1.1; }
.doc-sub { margin: 4px 0 0; color: var(--ink-2); }
.doc-lede { margin: 20px 0 0; font-size: 17px; line-height: 1.5; max-width: 52ch; }
.jobs { margin: 0; padding: 0; list-style: none; }
.job { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 14px 0 4px; }
.job-when { margin: 1px 0 0; color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.job h4 { margin: 0; font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.job h4 span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.job ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
.job li + li { margin-top: 5px; }
.job li::marker { color: var(--mint); }
.job b { font-weight: 650; }
.job p { margin: 4px 0 0; line-height: 1.5; color: var(--ink-2); }
.jobs--small .job { padding-top: 10px; }
.caps { display: grid; grid-template-columns: 104px 1fr; gap: 12px 16px; margin: 14px 0 0; }
.caps dt { color: var(--ink-2); font-size: 13.5px; padding-top: 4px; }
.caps dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--hover); font-size: 13.5px; }
.chips--links { margin-top: 12px; }
.chips--links li { padding: 0; }
.chips--links a { display: block; padding: 5px 13px; border-radius: 999px; color: inherit; text-decoration: none; }
.chips--links a:hover { background: var(--select); color: #fff; }

.community { padding: 0 0 30px; }
.community > :not(.photos) { margin-left: 32px; margin-right: 32px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.photos figure { position: relative; margin: 0; }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photos img.photo--wide { object-position: 24% 40%; }
.photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.community h3:first-of-type { margin-top: 24px; border-top: 0; padding-top: 0; }
.sb { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; margin-top: 12px; }
.sb img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--win-line); }
.sb p { margin: 0 0 14px; line-height: 1.5; font-size: 15px; }
.rows { margin: 8px -12px 0; padding: 0; list-style: none; }
.rows a { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: baseline; padding: 9px 12px; border-radius: 8px; color: inherit; text-decoration: none; }
.rows a::after { content: "\2197"; color: var(--ink-2); }
.rows a:hover { background: var(--hover); }
.row-when { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.rows em { font-style: normal; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.rows--meetups a { grid-template-columns: 64px 1fr auto auto; padding-block: 7px; }
.rows--meetups .year {
  margin: 14px 12px 2px; font-family: var(--pixel); font-size: 11px; letter-spacing: .04em; color: var(--ink-2);
}
.rows--meetups .year:first-child { margin-top: 4px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.stats strong { display: block; color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.community .sb + .chips--links { margin-top: 16px; }
.rows strong { display: block; font-size: 15px; font-weight: 600; }
.rows small { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }

/* The about-me files sit under the app icons */
.icons.icons--me { top: 374px; }

.dock-item--linkedin { background: #0a66c2; border-radius: 13px; }
.dock-item--linkedin svg { width: 28px; height: 28px; }

.btn {
  display: inline-flex; align-items: center; padding: 8px 15px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--ink); background: transparent; border: 1px solid var(--win-line);
}
.btn:hover { background: var(--hover); }
.btn--primary { background: var(--select); border-color: transparent; color: #fff; }
.btn--primary:hover { background: #0857bd; }
.btn--small { padding: 6px 12px; font-size: 13px; color: var(--menu-ink); }

/* Window motion: one pop when a window opens, nothing else */
.window.is-opening { animation: window-open .42s var(--ease-pop) both; }
.window.is-closing { animation: window-close .18s ease-in both; }
@keyframes window-open { from { opacity: 0; transform: scale(.55); } }
@keyframes window-close { to { opacity: 0; transform: scale(.9); } }
.window--about.is-intro { animation: window-open .5s var(--ease-pop) both .1s; }
.window--apps.is-intro { animation: window-open .5s var(--ease-pop) both .32s; }

/* ---------- Desktop icons ---------- */
.icons { position: absolute; top: 52px; right: 22px; display: grid; gap: 18px; justify-items: center; }
.icon { display: grid; justify-items: center; gap: 6px; width: 92px; color: #fff; text-decoration: none; font-family: var(--system); font-size: 12.5px; }
.icon img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.icon span { padding: 1px 6px; border-radius: 4px; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.icon:hover span, .icon:focus-visible span { background: var(--select); text-shadow: none; }
.icon:focus-visible { outline: none; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 10px; z-index: 40; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 8px; padding: 7px 9px;
  background: rgba(255, 255, 255, .17);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px;
}
.dock-item {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; color: #fff;
  transform-origin: 50% 100%; transition: transform .16s ease-out;
}
.dock-item img { width: 54px; height: 54px; border-radius: 13px; }
.dock-item img.tile { padding: 7px; }
.dock-item--github { background: #1c2420; border-radius: 13px; }
.dock-item--github svg { width: 30px; height: 30px; }
.dock-item:hover, .dock-item:focus-visible { transform: scale(1.3); }
.dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { transform: scale(1.12); }
.dock-item.is-running::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: rgba(255, 255, 255, .85);
}
.dock-label {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) scale(.77);
  padding: 3px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--menu-bg); color: var(--menu-ink); font-family: var(--system); font-size: 13px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none;
}
.dock-item:hover .dock-label, .dock-item:focus-visible .dock-label { opacity: 1; }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(255, 255, 255, .3); }

/* ---------- Zerre ---------- */
.zerre { position: fixed; left: 0; bottom: 2px; z-index: 30; width: 128px; height: 168px; pointer-events: none; }
.zerre-pet { position: absolute; left: 0; bottom: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 12px; }
.zerre-pet canvas { display: block; width: 128px; height: 168px; image-rendering: pixelated; }
.zerre-bubble {
  position: absolute; left: 62px; bottom: 128px; margin: 0; white-space: nowrap;
  padding: 7px 11px 6px; border-radius: 9px;
  background: #fff; color: #1c2420; font-family: var(--pixel); font-size: 12px; line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(4px) scale(.96); transform-origin: 12px 100%;
  transition: opacity .18s, transform .18s;
}
.zerre-bubble::after { content: ""; position: absolute; left: 12px; bottom: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.zerre-bubble.is-on { opacity: 1; transform: none; }
.zerre-bubble:empty { display: none; }
.zerre-bubble.is-left { left: auto; right: 62px; transform-origin: calc(100% - 12px) 100%; }
.zerre-bubble.is-left::after { left: auto; right: 12px; }

/* ---------- Phone: a home screen ---------- */
.statusbar { display: none; }
.sheet-backdrop { display: none; }

@media (max-width: 760px) {
  .menubar, .icons { display: none; }

  .statusbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: max(14px, env(safe-area-inset-top)) 28px 6px;
    color: #fff; font-family: var(--system); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
  }
  .statusbar span { font-weight: 500; opacity: .75; }

  .desktop { min-height: 0; padding: 10px 14px 210px; display: grid; gap: 16px; }
  .window { position: relative; inset: auto; width: auto; border-radius: 24px; }
  .window--about, .window--apps { left: auto; right: auto; top: auto; width: auto; }
  .window--about .titlebar, .window--apps .titlebar { display: none; }
  .about { padding: 28px 24px 24px; }
  .about h1 { font-size: 40px; }
  .lede { font-size: 18px; margin-bottom: 22px; }
  .facts { grid-template-columns: 1fr; gap: 2px; font-size: 15px; }
  .facts dd { margin-bottom: 10px; }
  .app-list { padding: 8px; }
  .app-row { padding: 10px; }

  /* App windows become sheets */
  .window--info {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 70 !important;
    width: auto; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0;
  }
  .window--info .titlebar { position: sticky; top: 0; z-index: 1; }
  .window--doc .doc { max-height: none; overflow: visible; }
  .notes { padding: 26px 22px calc(30px + env(safe-area-inset-bottom)); font-size: 16.5px; }
  .resume { padding: 24px 22px calc(30px + env(safe-area-inset-bottom)); }
  .job, .caps { grid-template-columns: 1fr; gap: 2px; }
  .caps dd { margin-bottom: 10px; }
  .community > :not(.photos) { margin-left: 22px; margin-right: 22px; }
  .sb { grid-template-columns: 1fr; gap: 14px; }
  .sb img { max-width: 320px; }
  .rows a { grid-template-columns: 1fr auto; }
  .row-when { grid-column: 1 / -1; }
  .rows--meetups a { grid-template-columns: 52px 1fr auto; gap: 10px; }
  .rows--meetups a::after { display: none; }
  .rows--meetups .row-when { grid-column: auto; }
  .about-more .btn { flex: 1 1 auto; }
  .dock-item--me { display: none; }
  .dock-sep + .dock-sep { display: none; }
  .info { grid-template-columns: 1fr; }
  .info-shot { min-height: 0; max-height: 260px; }
  .info-text { padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); }
  .window.is-opening { animation: sheet-up .36s cubic-bezier(.2, .8, .2, 1) both; }
  .window.is-closing { animation: sheet-down .22s ease-in both; }
  .window--about.is-intro, .window--apps.is-intro { animation: none; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .4); }

  .dock { bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 28px; padding: 10px 14px; gap: 18px; }
  .dock-sep { display: none; }
  .dock-item:hover, .dock-item:focus-visible, .dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { transform: none; }
  .dock-label { display: none; }
  /* Smaller on phones, standing on top of the dock */
  .zerre { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 74px); }
  .zerre-bubble { left: 32px; bottom: 64px; font-size: 11px; }
  .zerre-bubble.is-left { right: 32px; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .window.is-opening, .window.is-closing, .window.is-intro { animation: none !important; }
  .dock-item { transition: none; }
  .mu-modules.is-revealing .menu-title { animation: none; }
  .hider svg { transition: none; }
}

/* Narrower desktops: smaller windows side by side, then stacked */
@media (min-width: 761px) and (max-width: 1414px) {
  .window--about { left: clamp(24px, 3vw, 40px); width: 560px; }
  .about { padding: 36px 40px 32px; }
  .about h1 { font-size: 50px; }
  .window--apps { left: calc(clamp(24px, 3vw, 40px) + 580px); top: 330px; width: 450px; }
}
@media (min-width: 761px) and (max-width: 1169px) { .icons { display: none; } }
@media (min-width: 761px) and (max-height: 779px) { .icons--me { display: none; } }
@media (min-width: 761px) and (max-width: 1067px) {
  .window--apps { left: clamp(60px, 14vw, 200px); top: 500px; width: min(520px, calc(100vw - 80px)); }
  .desktop { min-height: 1000px; }
}
