/* seanrowe.fun: Windows XP / Frutiger Aero theme, light and dark */

:root {
  --sky-top: #3f9be8;
  --sky-mid: #8fd0fa;
  --sky-low: #e6f6ff;
  --hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 120C260 40 560 50 840 120S1280 190 1440 90V320H0Z' fill='%238fd16a'/%3E%3Cpath d='M0 190C300 90 620 120 900 190S1300 260 1440 210V320H0Z' fill='%234fae3c'/%3E%3C/svg%3E");
  --cloud: rgb(255 255 255 / 0.85);
  --bubble: rgb(255 255 255 / 0.55);
  --glass: rgb(255 255 255 / 0.8);
  --glass-strong: rgb(255 255 255 / 0.9);
  --glass-edge: rgb(255 255 255 / 0.95);
  --border: #b9dcf5;
  --text: #0e2a47;
  --muted: #4a6a8a;
  --accent: #1673d1;
  --accent-hover: #0b5bb5;
  --accent-soft: #dff1ff;
  --gel-top: #e9f7ff;
  --gel-bottom: #b8e2fb;
  --bar-1: #4aa3ff;
  --bar-2: #1f74e6;
  --bar-3: #0d5ad6;
  --bar-4: #0b4fc0;
  --shadow: 0 2px 4px rgb(14 60 110 / 0.08), 0 10px 30px rgb(14 60 110 / 0.16);
  --radius: 14px;
  --sans: 'Open Sans', 'Segoe UI', Frutiger, 'Frutiger Linotype', Tahoma, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #020b1f;
    --sky-mid: #0b2f5c;
    --sky-low: #12507e;
    --hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 120C260 40 560 50 840 120S1280 190 1440 90V320H0Z' fill='%231f5a3a'/%3E%3Cpath d='M0 190C300 90 620 120 900 190S1300 260 1440 210V320H0Z' fill='%23123f27'/%3E%3C/svg%3E");
    --cloud: rgb(140 200 255 / 0.12);
    --bubble: rgb(160 220 255 / 0.3);
    --glass: rgb(10 28 56 / 0.82);
    --glass-strong: rgb(14 36 70 / 0.88);
    --glass-edge: rgb(140 200 255 / 0.25);
    --border: #24507e;
    --text: #e6f2ff;
    --muted: #9dbbd8;
    --accent: #6cc4ff;
    --accent-hover: #a5dcff;
    --accent-soft: #123a66;
    --gel-top: #2a5f96;
    --gel-bottom: #123a66;
    --bar-1: #2f6fc4;
    --bar-2: #174f9e;
    --bar-3: #0d3c80;
    --bar-4: #082d63;
    --shadow: 0 2px 4px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--sky-low);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* The wallpaper: sky, clouds, bubbles and rolling hills, fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* bubbles */
    radial-gradient(circle at 8% 30%, transparent 34px, var(--bubble) 36px, transparent 38px),
    radial-gradient(circle at 7.4% 29%, rgb(255 255 255 / 0.7) 0 5px, transparent 6px),
    radial-gradient(circle at 92% 22%, transparent 52px, var(--bubble) 54px, transparent 56px),
    radial-gradient(circle at 91% 20.5%, rgb(255 255 255 / 0.7) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 48%, transparent 20px, var(--bubble) 22px, transparent 24px),
    radial-gradient(circle at 13% 60%, transparent 24px, var(--bubble) 26px, transparent 28px),
    radial-gradient(circle at 95% 68%, transparent 14px, var(--bubble) 16px, transparent 18px),
    /* clouds */
    radial-gradient(ellipse 22% 7% at 18% 12%, var(--cloud), transparent),
    radial-gradient(ellipse 16% 5% at 26% 15%, var(--cloud), transparent),
    radial-gradient(ellipse 26% 8% at 80% 9%, var(--cloud), transparent),
    radial-gradient(ellipse 18% 6% at 70% 14%, var(--cloud), transparent),
    /* sky */
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 80%);
}
body::after {
  content: '';
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 32vh;
  background: var(--hills) bottom / 100% 100% no-repeat;
}

/* Content sits on a frosted glass pane */
main {
  width: calc(100% - 2.5em);
  max-width: 760px;
  margin: 2.5em auto 0;
  padding: 2.5em 2.25em;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { margin: 1.8em 0 0.5em; line-height: 1.25; letter-spacing: -0.01em; }
h1 { margin-top: 0; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.5em; font-weight: 700; color: var(--accent-hover); }
h3 { font-size: 1.2em; font-weight: 700; }

img { max-width: 100%; height: auto; }

/* Header: a glossy XP Luna title bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--bar-1) 0%, var(--bar-2) 12%, var(--bar-3) 50%, var(--bar-3) 85%, var(--bar-4) 100%);
  border-bottom: 1px solid rgb(0 30 90 / 0.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 2px 10px rgb(0 40 100 / 0.3);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.06));
  pointer-events: none;
}
.site-header nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em 1.5em;
  max-width: 760px;
  margin: 0 auto;
  padding: 0.7em 1.25em;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(0 20 70 / 0.6);
}
/* A little glossy orb */
.logo::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 18%, transparent 45%),
    radial-gradient(circle at 50% 80%, #b9ff8a, #43b02a 55%, #1d7a17);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4), inset 0 -1px 2px rgb(0 60 0 / 0.4);
}
.logo:hover { color: #fff; }
.links { display: flex; gap: 0.35em; font-size: 0.9rem; font-weight: 600; }
.links a {
  padding: 0.3em 0.95em;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgb(0 20 70 / 0.5);
  transition: background 0.15s, border-color 0.15s;
}
.links a:hover {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.45), rgb(255 255 255 / 0.12) 50%, rgb(255 255 255 / 0.22));
  border-color: rgb(255 255 255 / 0.55);
  color: #fff;
}

/* A shiny gel button, shared by the profile links and the date pill */
.profiles a, .date {
  background: linear-gradient(180deg, var(--gel-top) 0%, var(--gel-top) 48%, var(--gel-bottom) 52%, var(--gel-top) 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 3px rgb(14 60 110 / 0.15);
}

/* About page: profile picture in a glossy round frame */
.avatar {
  float: right;
  width: 160px;
  height: 160px;
  margin: 0 0 1em 1.5em;
  border: 4px solid var(--glass-edge);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border), 0 0 18px rgb(43 179 240 / 0.45), var(--shadow);
}
@media (max-width: 600px) { .avatar { width: 110px; height: 110px; margin-left: 1em; } }

/* Home page */
.intro { margin-bottom: 2.5em; }
.intro h1 {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent) 20%, var(--accent-hover) 50%, #2bb3f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro p { margin: 0.25em 0 0; color: var(--muted); font-size: 1.1em; }
.profiles { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 1.25em; }
.profiles a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.95em 0.3em 0.75em;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.profiles a::after { content: '↗'; margin-left: -0.15em; opacity: 0.6; }
.profiles svg, .profiles img { width: 16px; height: 16px; flex: none; }
.profiles img { border-radius: 4px; }
.profiles a:hover { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 10px rgb(43 179 240 / 0.5); }
.posts { display: grid; gap: 1em; margin: 0; padding: 0; list-style: none; }
.posts li {
  position: relative;
  overflow: hidden;
  padding: 1.25em 1.5em;
  background: linear-gradient(180deg, var(--glass-strong), var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-edge);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.posts li:hover {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 3px rgb(43 179 240 / 0.25), var(--shadow);
  transform: translateY(-2px);
}
.posts a {
  color: var(--text);
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
}
/* Make the whole card clickable */
.posts a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.posts li:hover a { color: var(--accent); }
.posts p { margin: 0.3em 0 0; color: var(--muted); font-size: 0.95em; }

/* Posts */
.date {
  display: inline-block;
  margin: 0 0 1em;
  padding: 0.15em 0.85em;
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 700;
}
article img { display: block; border: 3px solid var(--glass-strong); border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
article img.small { max-width: min(100%, 360px); margin: 0 auto; }
figure { margin: 2em 0; }
figcaption { margin-top: 0.75em; color: var(--muted); font-size: 0.85rem; font-style: italic; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1em; margin: 2em 0; }
.gallery figure { margin: 0; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.lightbox {
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  cursor: zoom-out;
}
.lightbox::backdrop { background: rgb(4 20 45 / 0.85); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 95vw; max-height: calc(95vh - 3em); margin: 0 auto; border-radius: var(--radius); }
.lightbox p { margin: 0.75em 0 0; color: #e6f2ff; font-size: 0.9rem; text-align: center; }
blockquote {
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  border-left: 4px solid #2bb3f0;
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--text);
}
blockquote p { margin: 0; }
code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.85em;
}
pre {
  padding: 1em 1.25em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass-strong);
  overflow-x: auto;
  font-size: 0.85em;
}
pre > code { padding: 0; background: none; font-size: inherit; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5em 0; }
.back { margin: 3em 0 0; font-size: 0.95rem; font-weight: 600; }
.back a { text-decoration: none; }

/* Footer: floats over the hills */
footer {
  margin-top: auto;
  padding: 4em 1.25em 2em;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  text-shadow: 0 1px 2px rgb(0 40 0 / 0.6);
}
footer p {
  display: inline-block;
  margin: 0;
  padding: 0.4em 1.2em;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
footer a { color: #fff; }
footer a:hover { color: var(--gel-top); }

::selection { background: #2bb3f0; color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 1.9rem; }
  main { width: calc(100% - 1.5em); margin-top: 1.5em; padding: 1.75em 1.25em; }
}
