/* beccaportman.com */

:root {
  --ground: #26253A;
  --fg: #FBF6EC;
  --body: #E4DFD3;
  --muted: #A9A6BB;
  --rule: #4A4860;
  --accent: #EBAA22;
  --square: #EBAA22;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ground: #FBF6EC;
  --fg: #26253A;
  --body: #3A3950;
  --muted: #6B697D;
  --rule: #DCD1BC;
  --accent: #B07800;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

a { color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.page {
  position: relative;
  min-height: 100vh;
  padding: 88px 32px 120px;
  display: flex;
  gap: 40px 0;
}

/* Margin nav */
.nav {
  flex: 1 1 200px;
  max-width: 260px;
  padding-right: 48px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.2;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Theme toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle:hover { color: var(--fg); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* Main column */
main {
  flex: 999 1 520px;
  min-width: 0;
  max-width: 820px;
  padding-left: 96px;
  display: flex;
  flex-direction: column;
  color: var(--body);
}
main a {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
main a:hover { color: var(--accent); }

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 14px;
}
h1::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--square);
  flex: none;
}

/* Home */
.about { gap: 28px; font-size: 20px; line-height: 1.75; max-width: 760px; }
.about h1 { margin-bottom: 12px; }
.about p { margin: 0; }
.about strong { font-weight: 600; color: var(--fg); }
.interests {
  margin: -8px 0 0;
  padding-left: 1.1em;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: square;
}
.interests li { padding-left: 6px; }
.interests li::marker { color: var(--accent); }

/* Work */
.work { gap: 56px; font-size: 18px; line-height: 1.65; }
.work header { display: flex; flex-direction: column; gap: 16px; }
.work header p { margin: 0; font-size: 20px; line-height: 1.7; }
.entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.entry p { margin: 0; }
.entry h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--fg); }
.when { font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--muted); }
.entry .when { margin-bottom: 6px; }
.when a { color: var(--muted); }
.when a:hover { color: var(--accent); }

/* Phone */
@media (max-width: 720px) {
  .page { padding: 72px 20px 80px; gap: 40px; flex-wrap: wrap; }
  .nav {
    flex: 1 1 100%;
    max-width: none;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 24px;
  }
  main { padding-left: 0; }
  .about { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}
