/* Alec Vogelsang Photography
   Paper, ink, and a little bit of tape. */

:root {
  --paper:      #f4efe3;
  --paper-warm: #ebe3d3;
  --card:       #fffdf8;
  --ink:        #26241f;
  --ink-soft:   #5d574c;
  --ink-faint:  #8c8578;
  --denim:      #3f5c78;
  --denim-deep: #2c4257;
  --mustard:    #cf9a2f;
  --brick:      #bf6247;
  --rule:       #d8cfbb;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --hand:  "Caveat", "Bradley Hand", "Segoe Script", cursive;
  --sans:  ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 1px 2px rgba(38, 36, 31, .09), 0 8px 22px -12px rgba(38, 36, 31, .35);
  --shadow-up: 0 2px 4px rgba(38, 36, 31, .10), 0 20px 38px -16px rgba(38, 36, 31, .42);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 34rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* the scrapbook rotations stick out a hair; never let that scroll the page */
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain. One inline SVG, no extra requests. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
main, header, footer, .lightbox { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

a { color: var(--denim-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brick); }

:focus-visible {
  outline: 2.5px solid var(--denim);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 4px 0;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem var(--gutter) 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark { text-decoration: none; color: inherit; display: block; }
.wordmark__name {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  letter-spacing: -.02em;
}
.wordmark__kind {
  display: block;
  font-family: var(--sans);
  font-size: .625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem clamp(1rem, 3vw, 2rem);
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .site-head { padding-top: 1.1rem; }
  .site-nav { width: 100%; gap: .6rem 1.15rem; font-size: .68rem; letter-spacing: .12em; }
}
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--brick); }
.nav-cta {
  color: var(--denim-deep) !important;
  border-bottom: 1.5px solid var(--mustard);
  padding-bottom: 2px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
}
.hero__text, .hero__photo { min-width: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.kicker {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
  max-width: 12ch;
  margin-bottom: .35em;
}

.hero__note {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--brick);
  transform: rotate(-1.4deg);
  transform-origin: left center;
  margin: 0 0 1.3rem;
}

.lede {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .82rem 1.5rem;
  background: var(--denim-deep);
  color: var(--paper);
  border: 1.5px solid var(--denim-deep);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--denim-deep); }
.btn--ghost:hover { background: var(--denim-deep); color: var(--paper); }

.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%;
  background: var(--card);
  padding: clamp(.6rem, 1.4vw, 1rem);
  padding-bottom: clamp(2.2rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-up);
  transform: rotate(-1deg);
}
.hero__photo figcaption {
  position: absolute;
  left: clamp(1.4rem, 3vw, 2.2rem);
  bottom: clamp(.7rem, 1.6vw, 1.1rem);
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
  transform: rotate(-1deg);
}
/* strip of tape */
.hero__photo::after {
  content: "";
  position: absolute;
  top: -14px; left: 12%;
  width: clamp(70px, 14%, 110px); height: 30px;
  background: rgba(214, 196, 152, .62);
  border-left: 1px dashed rgba(180, 160, 118, .5);
  border-right: 1px dashed rgba(180, 160, 118, .5);
  transform: rotate(-6deg);
}

/* ---------- section furniture ---------- */

.section-head { margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: .15em; }
.section-sub {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- filters ---------- */

.work { padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 7vw, 5rem); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.chip {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- gallery ---------- */

.gallery {
  columns: 1;
  column-gap: clamp(1rem, 2.4vw, 1.9rem);
}
@media (min-width: 560px)  { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
@media (min-width: 1500px) { .gallery { columns: 4; } }

.photo {
  break-inside: avoid;
  margin: 0 0 clamp(1rem, 2.4vw, 1.9rem);
}
.photo[hidden] { display: none; }

.photo__btn {
  display: block;
  width: 100%;
  padding: clamp(.45rem, 1vw, .7rem);
  padding-bottom: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .22s ease, box-shadow .22s ease;
}
.photo__btn img { width: 100%; }
.photo__btn:hover, .photo__btn:focus-visible {
  transform: translateY(-4px) rotate(0deg) scale(1.008);
  box-shadow: var(--shadow-up);
}

/* a hair of scrapbook wonk, deterministic per position */
.photo:nth-child(4n+1) .photo__btn { transform: rotate(-.7deg); }
.photo:nth-child(4n+2) .photo__btn { transform: rotate(.55deg); }
.photo:nth-child(4n+3) .photo__btn { transform: rotate(-.35deg); }
.photo:nth-child(4n+4) .photo__btn { transform: rotate(.8deg); }

@media (prefers-reduced-motion: reduce) {
  .photo__btn, .photo:nth-child(n) .photo__btn { transform: none; transition: none; }
  .photo__btn:hover { transform: none; }
}

.gallery__empty {
  font-family: var(--hand);
  font-size: 1.35rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 3rem 0;
}

/* ---------- about ---------- */

.about {
  display: grid;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 820px) {
  .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

.about__photo { margin: 0; position: relative; max-width: 24rem; }
.about__photo img {
  background: var(--card);
  padding: .7rem;
  padding-bottom: 2.4rem;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-up);
  transform: rotate(1.6deg);
}
.about__photo::after {
  content: "";
  position: absolute;
  top: -12px; right: 16%;
  width: 88px; height: 28px;
  background: rgba(214, 196, 152, .62);
  border-left: 1px dashed rgba(180, 160, 118, .5);
  border-right: 1px dashed rgba(180, 160, 118, .5);
  transform: rotate(5deg);
}

.about__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.about__text p { max-width: var(--measure); color: var(--ink-soft); }
.about__ps {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--denim-deep) !important;
  border-left: 2.5px solid var(--mustard);
  padding-left: 1rem;
  margin-top: 1.6rem;
}

/* ---------- contact ---------- */

.contact { padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }

.contact__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 68rem;
  margin: 0 auto;
}
@media (min-width: 880px) {
  .contact__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

.contact__intro h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.contact__intro p { max-width: var(--measure); color: var(--ink-soft); }

.contact__list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.contact__list li {
  padding: .55rem 0;
  border-bottom: 1px dashed var(--rule);
}
.contact__list span {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--denim-deep);
  margin-right: .35rem;
}

/* lined-paper card */
.form {
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-up);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent, transparent 31px,
    rgba(63, 92, 120, .11) 31px, rgba(63, 92, 120, .11) 32px
  );
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.field .opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--rule);
  border-radius: 0;
  padding: .5rem .2rem;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--denim);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: .75; }

.gotcha { position: absolute !important; left: -9999px !important; }

.btn--send { margin-top: .6rem; }
.btn--send[disabled] { opacity: .55; cursor: progress; }

.form__status {
  font-family: var(--hand);
  font-size: 1.3rem;
  margin: 1rem 0 0;
  min-height: 1.3em;
}
.form__status.is-ok  { color: var(--denim-deep); }
.form__status.is-bad { color: var(--brick); }

.form__fineprint {
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--ink-faint);
  margin: .9rem 0 0;
}

/* ---------- footer ---------- */

.site-foot {
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
  background: var(--paper-warm);
}
.foot__mark {
  font-weight: 800;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.foot__social {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding: 0;
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.foot__social a { color: var(--ink-soft); text-decoration: none; }
.foot__social a:hover { color: var(--brick); }
.foot__fine {
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 24, .93);
}

.lightbox__frame {
  position: relative;
  margin: 0;
  max-width: min(94vw, 1200px);
  text-align: center;
}
.lightbox__frame img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  background: var(--card);
  padding: clamp(.4rem, 1vw, .7rem);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
}
.lightbox__frame figcaption {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: rgba(244, 239, 227, .85);
  margin-top: 1rem;
}

.lb-btn {
  position: absolute;
  z-index: 2;
  background: transparent;
  color: rgba(244, 239, 227, .8);
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
  line-height: 1;
  padding: .3rem .7rem;
  transition: color .15s ease;
}
.lb-btn:hover { color: #fff; }
.lb-btn--close { top: clamp(.5rem, 2vw, 1.4rem); right: clamp(.5rem, 2vw, 1.4rem); font-size: 2.4rem; }
.lb-btn--prev, .lb-btn--next { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-btn--prev { left: clamp(.2rem, 1.5vw, 1.4rem); }
.lb-btn--next { right: clamp(.2rem, 1.5vw, 1.4rem); }

body.is-locked { overflow: hidden; }
