/* Marker font for the name, to match the DES logo */
@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap");

:root {
  color-scheme: dark;
  --bg: #2a333b;          /* rainy slate sky */
  --ink: #101214;         /* marker-black outlines */
  --surface: #16191c;
  --surface-hover: #22272b;
  --border: #101214;
  --text: #eae6e2;        /* same off-white as the drawings */
  --muted: #a9a49e;
  --accent: #e07a4f;      /* Space Needle rust */
  --accent-deep: #c8643b;
  --gold: #e0a63e;        /* lit-window gold */
  --radius: 4px;
  --gap: 24px;
}

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--text); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Illustrated Seattle backdrop ---------- */
/* Fixed layer instead of background-attachment: fixed (iOS ignores that). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg) url("bg-phone.svg") center bottom / cover no-repeat;
}
@media (min-aspect-ratio: 4/5) {
  body::before { background-image: url("bg-wide.svg"); }
}

/* ---------- Rain ---------- */
#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
}

/* The old silhouette scene is replaced by the illustration above. */
.scene { display: none; }

/* ---------- Layout ---------- */
.profile {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: calc(560px + var(--gap) * 2);
  margin: 0 auto;
  padding: 56px var(--gap) 32px;
}

.profile-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

/* Des + torti on a spiky cartoon burst */
.avatar {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 0 10px -6px;
  filter: drop-shadow(5px 5px 0 var(--ink));
}

/* DES marker logo above the name */
.logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 2px 0 -4px;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

h1 {
  margin: 0;
  font-family: "Permanent Marker", "Atkinson Hyperlegible Next", cursive;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--text);
  text-shadow: 2px 2px 0 var(--ink);
}

.bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  text-shadow: 0 1px 2px var(--ink);
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.location svg { flex-shrink: 0; color: var(--accent); }

/* ---------- Social icons ---------- */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 0 -8px;
}

.social-icons a {
  display: inline-flex;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
  transition: color .15s ease, transform .15s ease;
}

.social-icons svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(2px 2px 0 var(--ink));
}

@media (hover: hover) {
  .social-icons a:hover { color: var(--accent); transform: translateY(-2px); }
}

/* ---------- Blog buttons: zine-style, thick outline + hard shadow ---------- */
.buttons {
  display: flex;
  flex-wrap: wrap;
  margin-top: 6px;
}

.button {
  display: block;
  margin: 6px 14px 10px 0;
  padding: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.button-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}
.button-inner svg { width: 18px; height: 18px; flex-shrink: 0; }

.button:hover {
  color: var(--ink);
  background: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- Current status ---------- */
.current-status {
  width: 100%;
  margin-top: 8px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 3px solid var(--ink);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.current-status h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.current-status p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.current-status time {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.current-status a {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline 1px;
  text-underline-offset: 3px;
}

.current-status [hidden] { display: none; }

/* ---------- Footer: dark strip so it reads over the water ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 14px var(--gap) 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 85%, transparent);
}

.site-footer p { margin: 0; }
.heart { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; margin: 0 1px; color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  :root { --gap: 20px; }
  .profile { padding-top: 40px; align-items: flex-start; }
  .avatar { width: 220px; }
  h1 { font-size: 1.35rem; }
  /* blog buttons: two equal columns, side by side */
  .buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 4px 0 6px;
  }
  .button {
    margin: 0;
    padding: 9px 6px;
    font-size: 14px;
    text-align: center;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .button:hover { box-shadow: 5px 5px 0 var(--ink); }
  .button-inner { gap: 6px; padding: 0; justify-content: center; }
  .button-inner svg { width: 15px; height: 15px; }
}

@media (max-width: 360px) {
  .buttons { gap: 10px; }
  .button { font-size: 13px; padding: 8px 4px; }
  .button-inner svg { display: none; }
}

/* ---------- Short desktop/laptop screens ---------- */
@media (min-aspect-ratio: 4/5) and (max-height: 820px) {
  .profile { padding-top: 28px; padding-bottom: 20px; }
  .profile-inner { gap: 10px; }
  .avatar { width: 190px; margin-bottom: 8px; }
  .buttons { margin-top: 0; }
  .site-footer { padding: 10px var(--gap) 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .social-icons a, .button { transition: none; }
  .button:hover, .button:active { transform: none; }
  .status-dot { animation: none; }
}
