/* daveyalba.com — matches the original Squarespace design. No build step. */

:root {
  --bg: #ffffff;
  --text: #777777;       /* body text */
  --strong: #121212;     /* headings */
  --nav-idle: #cfcfcf;   /* inactive nav links */
  --nav-active: #000000;
  --link: #6699cc;
  --link-hover: #3d6f9e;
  --rule: #e6e6e6;
  --icon: #8c8c8c;
  --code-bg: #f7f7f7;
  --script: "Homemade Apple", cursive;
  /* The original used Museo Sans (an Adobe font licensed through Squarespace).
     Nunito Sans Light is the closest free match. */
  --sans: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
}

strong, b { font-weight: 700; color: #555; }

.wrap {
  max-width: 924px;
  margin: 0 auto;
  padding: 0 1rem;
}

main, .site-footer { max-width: 800px; margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header {
  text-align: center;
  padding: 3.5rem 0 1.75rem;
}

.site-name {
  font-family: var(--script);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.6;
  text-transform: lowercase;
  margin: 0;
}

.site-name a { color: #1a1a1a; text-decoration: none; }

.tagline {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text);
  margin: 1.25rem 0 1.75rem;
}

.site-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 14px;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-nav a { color: var(--nav-idle); text-decoration: none; transition: color 0.15s; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--nav-active); }

/* ---------- text ---------- */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--strong);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.8;
}
h1 { font-size: 16.5px; text-align: center; margin: 0 0 1.5rem; }
h2 { font-size: 15px; margin: 2.75rem 0 0.75rem; }
h2 a { color: var(--strong); }
h2 a:hover { color: var(--link); }

p { margin: 0 0 1.6rem; }

figure { margin: 0 0 1.75rem; }
figure img { display: block; width: 100%; height: auto; }
figcaption { font-size: 12px; margin-top: 0.75rem; }

/* Home page: photo on the left, text wrapping beside it */
.portrait { float: left; width: 39%; margin: 0 4% 1.5rem 0; }
.clear { clear: both; }

/* ---------- clips ---------- */
.featured { margin-bottom: 1rem; }
.featured .title { font-weight: 700; }

.clips { list-style: none; margin: 0; padding: 0; }
.clips li { margin: 0 0 1.1rem; }
.meta { }
.note { display: block; }
.note::before { content: "— "; }
.byline { display: block; font-size: 13.5px; font-style: italic; margin-top: 0.15rem; }
.desc { display: block; font-size: 13.5px; line-height: 1.7; margin: 0.35rem 0 0.2rem; }
.clips li:has(.desc) { margin-bottom: 1.6rem; }

/* ---------- pgp ---------- */
pre.key {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: #444;
  background: var(--code-bg);
  padding: 1rem;
  overflow-x: auto;
  white-space: pre;
}

.button {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--link);
  padding: 0.4rem 0.9rem;
}
.button:hover { background: var(--link); color: #fff; }

/* ---------- article pages ---------- */
.article h1 { font-size: 18px; margin-bottom: 0.25rem; }
.article .dek { text-align: center; font-size: 13px; margin-bottom: 2rem; }

/* ---------- footer: round social icons ---------- */
.site-footer {
  clear: both;
  text-align: center;
  padding: 4rem 0 3rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 11px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--icon);
  color: #fff;
  font-size: 12px;
  transition: background 0.15s;
}
.site-footer a:hover { background: #444; color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 640px) {
  .site-header { padding-top: 2rem; }
  .site-name { font-size: 2.3rem; }
  .portrait { float: none; width: 100%; max-width: 340px; margin: 0 auto 1.75rem; }
}
