/* bensellick.com — static rebuild of the Squarespace design (Nov 2026)
   Measurements taken from the live Squarespace site. */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-700-italic.woff2) format("woff2"); }

:root {
  --text: #666;
  --head: #121212;
  --nav: #1f1f1f;
  --nav-active: #a3a3a3;
  --muted: #9e9e9e;
  --rule: #bbb;
  --dark: #272727;
  --gutter: 17px;
  --font: "Figtree", "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--head); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 10px; top: 10px; }

/* ---------- frame: left sidebar + content ---------- */
.wrap { display: flex; align-items: flex-start; gap: 70px; padding: 50px 97px 50px 50px; }
.sidebar { flex: 0 0 180px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo { display: block; width: 166px; margin-top: 16px; }
.logo img { width: 100%; }
.tagline { margin: 30px 0 0; font-size: 12px; line-height: 1.4; letter-spacing: .04em; color: var(--muted); }
.sidebar nav ul { list-style: none; margin: 30px 0 0; padding: 0; }
.sidebar nav a { display: block; font-size: 16px; font-weight: 500; line-height: 32px; letter-spacing: 0; color: var(--nav); text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a.active { color: var(--nav-active); }
.menu-toggle { display: none; }
.content { flex: 1; min-width: 0; }

/* ---------- Squarespace 12-column grid ---------- */
.row { display: flex; margin: 0 calc(-1 * var(--gutter)); }
.col { flex: 0 0 var(--w); max-width: var(--w); padding: 0 var(--gutter); }
.col::after, .layout::after { content: ""; display: table; clear: both; }
.block { padding: var(--gutter) 0; clear: both; }
.block.text { clear: none; }
.layout > .row:first-child > .col > .block:first-child { padding-top: 0; }
.float { width: var(--w); }
.float-right { float: right; clear: right; padding-left: var(--gutter); }
.float-left { float: left; clear: left; padding-right: var(--gutter); }

/* ---------- text ---------- */
h1, h2, h3, h4 { color: var(--head); font-weight: 500; line-height: 1.2; margin: 1em 0; }
h1 { font-size: 26px; letter-spacing: .01em; }
h2 { font-size: 20.8px; letter-spacing: .01em; }
h3 { font-size: 15.6px; letter-spacing: .01em; }
h4 { font-size: 14px; }
p, ul, ol, blockquote { margin: 1em 0; }
.text p, .text h1, .text h2, .text h3, .text h4 { white-space: pre-wrap; }
.text a { text-decoration: none; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
strong { font-weight: 700; }
blockquote { margin-left: 40px; font-style: italic; }
.score-note { color: var(--muted); }
.score-caption { font-size: 12px; color: var(--muted); margin: -8px 0 0; }
.text p:empty::before { content: "\200b"; }
.block.spacer::before { content: ""; display: block; height: 34px; }

/* ---------- media blocks ---------- */
figure { margin: 0; }
.crop { position: relative; height: 0; padding-bottom: var(--ratio); overflow: hidden; }
.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-banner { margin-bottom: 24px; }
figcaption { font-size: 12px; margin-top: 10px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 14px 0; }
.embed { position: relative; height: 0; padding-bottom: var(--ratio, 56.25%); background: #f3f3f3; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-score iframe { display: block; width: 100%; border: 0; background: #f3f3f3; }

/* audio: simple dark player in the style of the Squarespace one */
.player { background: var(--dark); color: #fff; padding: 12px 16px 14px; }
.player .labels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.player .t { font-size: 14px; color: #fff; }
.player .a { font-size: 12px; color: #aaa; }
.player .audio-dl { margin-left: auto; font-size: 12px; color: #aaa; }
.player .audio-dl:hover { color: #fff; }
.player audio { display: block; width: 100%; height: 40px; color-scheme: dark; }

/* ---------- contact form ---------- */
.contact-form { display: grid; gap: 22px; max-width: 640px; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form legend, .contact-form > label { color: var(--head); font-size: 14px; padding: 0; }
.contact-form legend { margin-bottom: 4px; }
.contact-form fieldset label { font-size: 12px; color: var(--head); }
.contact-form .req { color: var(--muted); font-size: 12px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; color: var(--head);
  background: #fafafa; border: 1px solid #ccc; border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--head); outline: none; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button {
  justify-self: start; background: var(--dark); color: #fff; border: 0; padding: 15px 36px; cursor: pointer;
  font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
}
.contact-form button:hover { background: #000; }
.contact-form button[disabled] { opacity: .6; cursor: default; }
.contact-form .invalid { border-color: #c00; }
.form-status { margin: 0; min-height: 1.6em; color: var(--head); }

/* ---------- blog ---------- */
.post { margin-bottom: 90px; }
.post .entry-title { margin: 0 0 8px; }
.post .entry-title a { text-decoration: none; color: var(--head); }
.entry-date { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.entry-date a { text-decoration: none; }
.post-nav { display: flex; gap: 24px; border-top: 1px solid var(--rule); padding-top: 20px; }
.post-nav a { text-decoration: none; color: var(--head); }
.post-nav .prev { margin-left: auto; }

/* ---------- cover page ---------- */
body.cover { background: #aea89c; overflow: hidden; }
.cover-bg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cover-inner { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: #fff; }
.cover-inner h1 { margin: 0; }
.cover-inner h1 img { width: 92px; }
.cover-inner ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.cover-inner a { color: #fff; text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.cover-inner a:hover { opacity: .7; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .wrap { display: block; padding: 15px 20px 40px; }
  .sidebar { margin-bottom: 40px; }
  .menu-toggle {
    display: block; order: -1; align-self: stretch; margin-bottom: 12px; padding: 10px; border: 0; background: none;
    font: 500 16px/1 var(--font); color: var(--nav); cursor: pointer;
  }
  .logo { width: 74px; margin-top: 0; }
  .tagline { margin-top: 14px; }
  .sidebar nav { display: none; align-self: stretch; }
  .sidebar nav.open { display: block; }
  .sidebar nav ul { margin-top: 14px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 6px 0; }
  .sidebar nav a { line-height: 44px; }
  .row { display: block; margin: 0; }
  .col { max-width: none; padding: 0; }
  .col.empty, .block.spacer { display: none; }
  .float, .float-right, .float-left { float: none; width: auto; padding: 0; }
  .contact-form fieldset { grid-template-columns: 1fr; }
  .embed-score iframe { height: 520px !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .sidebar nav a, .cover-inner a { transition: color .15s, opacity .15s; }
}
