/* samuelkaufman.art — one stylesheet for the whole site */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #F0F4F8;      /* page: off-white with a blue tinge */
  --ink: #1E2328;         /* text */
  --ink-quiet: #67707A;   /* secondary text */
  --rule: rgba(30, 35, 40, 0.14);
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 24px;
  --page: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em, .title { font-style: italic; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-name { font-size: 15px; }
.site-nav { display: flex; gap: 28px; color: var(--ink-quiet); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- work index ---------- */
.works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 96px;
}
.work-tile a { display: block; }
.work-tile a:hover { text-decoration: none; }
.work-tile a:hover .title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.work-tile img { width: 100%; }

.caption { margin-top: 14px; font-size: 14px; line-height: 1.45; }
.caption .meta { color: var(--ink-quiet); }
.caption h1 { font: inherit; }

/* ---------- single work ---------- */
.work {
  padding-top: 24px;
  padding-bottom: 72px;
  max-width: 760px;
}
.work .plate + .plate { margin-top: 56px; }
.work .caption { margin-top: 18px; }
.work .inquire { margin-top: 18px; font-size: 14px; }
.work .inquire a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  padding-bottom: 72px;
  max-width: 760px;
  font-size: 14px;
  color: var(--ink-quiet);
}
.pager a { color: var(--ink); }
.pager .next { margin-left: auto; text-align: right; }

/* ---------- info ---------- */
.info {
  padding-top: 24px;
  padding-bottom: 96px;
  max-width: 34em;
}
.info p + p { margin-top: 1em; }
.info section + section { margin-top: 56px; }
.info h2 {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-quiet);
  margin-bottom: 12px;
}
.bio { font-size: 19px; line-height: 1.45; }
.info .link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.signup { display: flex; gap: 10px; margin-top: 16px; max-width: 26em; }
.signup input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-quiet);
  border-radius: 0;
  padding: 8px 0;
}
.signup input::placeholder { color: var(--ink-quiet); }
.signup button {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 18px;
  cursor: pointer;
}
.signup button:hover { background: var(--ink); color: var(--ground); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup button:disabled { opacity: .5; cursor: default; }
.form-note { margin-top: 10px; font-size: 13px; color: var(--ink-quiet); min-height: 1.4em; }

/* ---------- footer ---------- */
.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--ink-quiet);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 48px; }
  .site-head { padding-top: 40px; padding-bottom: 40px; }
  .works { grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 80px; }
  .bio { font-size: 22px; }
}
@media (min-width: 1100px) {
  .works { column-gap: 72px; }
}

/* Single work on wide screens: photo sized to the window, caption beside it,
   so the title and dimensions are visible without scrolling. */
@media (min-width: 960px) {
  .work { max-width: none; }
  .work .plate {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr);
    column-gap: 48px;
    align-items: end;
  }
  .work .plate img {
    width: auto;
    max-height: calc(100vh - 150px);
    max-width: min(760px, 100%);
  }
  .work .caption { margin-top: 0; }
  .pager { max-width: none; }
}
