/* Lincstube | www.lincstube.com */

:root {
  --red: #EF4A42;
  --red-dark: #D23A33;
  --green: #7BC96F;
  --green-dark: #2E7D4F;
  --green-tint: #EFF8EC;
  --purple: #9B7FD4;
  --purple-dark: #6C4FB0;
  --purple-tint: #F3EFFB;
  --pink: #F4A7C4;
  --pink-tint: #FDF1F6;
  --ink: #1E2126;
  --ink-soft: #4C525C;
  --line: #E2E5E9;
  --white: #FFFFFF;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .5em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-dark); }
a:hover { color: var(--ink); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 100; background: var(--white);
  padding: 10px 16px; border: 2px solid var(--red); border-radius: var(--radius);
}

:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 2px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 74px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 34px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-weight: 600; font-size: .975rem; text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--white); }

/* Buttons */

.btn {
  display: inline-block;
  background: var(--green-dark); color: var(--white);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 13px 24px;
  border: 1px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red); box-shadow: 0 3px 0 var(--red-dark); }
.btn-red:hover { background: var(--red); box-shadow: 0 5px 0 var(--red-dark); }

.btn-purple { background: var(--purple); box-shadow: 0 3px 0 var(--purple-dark); }
.btn-purple:hover { background: var(--purple); box-shadow: 0 5px 0 var(--purple-dark); }

.btn-outline {
  background: var(--white); color: var(--ink); border-color: #C9CED4;
  box-shadow: 0 3px 0 var(--line);
}
.btn-outline:hover { background: var(--white); color: var(--ink); box-shadow: 0 5px 0 var(--line); }

.btn-sm { padding: 9px 18px; font-size: .925rem; }
.btn-block { width: 100%; padding: 15px 24px; font-size: 1.05rem; }

/* Hand-drawn doodles */

.doodle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.js .doodle path { stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-in .doodle path, .doodle.is-in path { animation: draw .9s ease forwards; }
.is-in .doodle path:nth-child(2) { animation-delay: .18s; }
.is-in .doodle path:nth-child(3) { animation-delay: .36s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.doodle-underline { display: block; width: 210px; height: 14px; color: var(--red); margin: -6px 0 16px; }
.doodle-sparkle { position: absolute; top: -22px; right: -14px; width: 84px; height: 84px; color: var(--purple); }
.doodle-arrow { width: 108px; height: 46px; color: var(--red); flex: none; }
.doodle-phone { width: 74px; height: 92px; color: var(--white); flex: none; }
.icon { width: 46px; height: 46px; color: var(--green-dark); margin-bottom: 10px; }

/* Scroll reveal */

/* Only hide for the animation when JS is running, so the page is never
   blank if the script fails or is blocked. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Hero */

.hero { padding: 60px 0 68px; border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--red); margin-bottom: .6rem;
}

.hero h1 { margin-bottom: .25em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.hero-photo { position: relative; }

/* Recording viewfinder */

.viewfinder { position: relative; padding: 26px; }

.vf-corner { position: absolute; width: 30px; height: 30px; border: 3px solid var(--red); }
.vf-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.rec {
  position: absolute; top: 2px; left: 42px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--red);
  background: var(--white); padding: 2px 8px;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: .15; } }

/* Polaroids */

.polaroid {
  background: var(--white);
  padding: 14px 14px 0;
  border: 1px solid #DDE1E6;
  box-shadow: 0 10px 24px rgba(30, 33, 38, .16), 0 2px 4px rgba(30, 33, 38, .08);
  max-width: 100%;
}

/* The image is a button so it can be opened in the lightbox by click or keyboard. */
.polaroid-img {
  display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: var(--ink); overflow: hidden;
  cursor: zoom-in; font: inherit;
}
.polaroid-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.polaroid-img:hover img { transform: scale(1.04); }

.polaroid-cap {
  font-size: .9rem; line-height: 1.4; color: var(--ink-soft);
  text-align: center; padding: 13px 6px 18px; margin: 0;
  min-height: 3.4em;
}

.lean-left  { transform: rotate(-1.8deg); }
.lean-right { transform: rotate(1.8deg); }

/* 3D tilt */

.tilt { transition: transform .3s ease, box-shadow .3s ease; will-change: transform; }
.tilt:hover {
  transform: perspective(900px) rotateX(4deg) rotateY(-5deg) translateY(-6px) scale(1.02);
  box-shadow: 0 22px 42px rgba(30, 33, 38, .22), 0 4px 8px rgba(30, 33, 38, .1);
  z-index: 2;
}

/* Topic strip */

.strip { background: var(--green-tint); border-bottom: 1px solid var(--line); padding: 44px 0; }

.strip-head {
  font-size: 1.5rem; margin: 0 0 26px; padding-bottom: 12px;
  border-bottom: 2px solid var(--green); color: var(--ink);
}

.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.topics h2 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; margin-bottom: .35em; }
.topics p { font-size: .95rem; color: var(--ink-soft); }

/* Sections */

.section { padding: 66px 0; }
.section-alt { background: var(--pink-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 30px; padding-bottom: 14px; border-bottom: 2px solid var(--purple);
}
.section-head h2 { margin: 0 0 .25em; }
.section-sub { color: var(--ink-soft); font-size: .975rem; margin: 0; }
.link-more { font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--red); }
.link-more:hover { color: var(--red-dark); }

/* Videos */

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }

.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 33, 38, .18);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; }
.video-meta h3 { font-family: var(--sans); font-size: 1.0625rem; margin: 0; }

.cta-inline {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px 26px;
  background: var(--green-tint); border-radius: var(--radius);
}
.cta-inline p { margin: 0; flex: 1 1 240px; font-size: 1.05rem; font-weight: 600; }

/* Photo wall */

.photo-wall {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 26px 22px; align-items: start;
}

/* Grid items default to min-width:auto, which lets the images' intrinsic
   width push the columns wider than the container on narrow screens. */
.photo-wall > * { min-width: 0; }

/* Friends band */

.friends { background: var(--purple); color: var(--white); padding: 54px 0; }
.friends-inner { display: flex; align-items: center; gap: 36px; }
.friends h2 { color: var(--white); }
.friends p { color: rgba(255, 255, 255, .92); max-width: 62ch; }
.friends-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.3rem; }
.friends .btn-purple { background: var(--white); color: var(--purple-dark); box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.friends .btn-purple:hover { color: var(--purple-dark); }
.friends .btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.friends .btn-outline:hover { background: rgba(255, 255, 255, .12); color: var(--white); box-shadow: none; }

/* Form */

.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.form-intro h2 { margin-bottom: .5em; }

.notice {
  background: var(--purple-tint); border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; margin: 20px 0;
}
.notice h3 { font-family: var(--sans); font-size: 1rem; margin-bottom: .4em; }
.notice p { font-size: .925rem; color: var(--ink-soft); }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  box-shadow: 0 8px 20px rgba(30, 33, 38, .07);
}

.contact-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.contact-form legend {
  font-family: var(--serif); font-weight: 700; font-size: 1.0625rem;
  padding: 0 0 8px; margin-bottom: 14px; width: 100%; border-bottom: 1px solid var(--line);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid #C9CED4; border-radius: var(--radius); background: var(--white);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--purple-dark); outline: 2px solid rgba(108, 79, 176, .25);
}
.field input::placeholder, .field textarea::placeholder { color: #8A9099; }

.hint { font-size: .85rem; color: var(--ink-soft); margin: 6px 0 0; }
fieldset > .hint { margin: -8px 0 14px; }

.consent { background: var(--green-tint); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: 14px; }
.check:last-child { margin-bottom: 0; }
.check input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--green-dark); }

.fine { font-size: .825rem; color: var(--ink-soft); line-height: 1.55; }
.hp { position: absolute; left: -9999px; }

/* Lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(20, 22, 26, .88);
  opacity: 0; transition: opacity .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox-figure {
  margin: 0; max-width: min(88vw, 760px);
  background: var(--white); padding: 16px 16px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: scale(.94); transition: transform .25s ease;
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }

.lightbox-figure img {
  width: 100%; max-height: 74vh; object-fit: contain; background: var(--ink);
}
.lightbox-figure figcaption {
  font-size: .95rem; color: var(--ink-soft);
  text-align: center; padding: 16px 8px 20px;
}

.lightbox-close {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  color: var(--ink); background: var(--white);
  border: 0; border-radius: var(--radius); padding: 9px 16px; cursor: pointer;
}
.lightbox-close:hover { background: var(--pink-tint); }

body.lightbox-open { overflow: hidden; }

/* Footer */

.site-footer { background: var(--ink); color: #C6CBD2; padding: 42px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-logo { width: auto; height: 30px; margin-bottom: 8px; }
.site-footer .fine { color: #A7AEB7; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--white); font-weight: 600; font-size: .95rem; text-decoration: none; }
.footer-nav a:hover { color: var(--red); }
.copyright { grid-column: 1 / -1; border-top: 1px solid #343A42; padding-top: 18px; margin: 8px 0 0; }

/* Simple pages */

.simple-page { padding: 80px 0; max-width: 680px; }
.simple-page h1 { margin-bottom: .4em; }
.simple-page h2 { font-size: 1.25rem; margin-top: 2rem; }
.simple-page p { color: var(--ink-soft); }

/* Responsive */

@media (max-width: 1000px) {
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { order: -1; max-width: 420px; margin: 0 auto; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .topics { grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
  .friends-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 40px 0 46px; }
  .section { padding: 46px 0; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { display: none; }
  .brand img { height: 28px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-wall { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .polaroid { padding: 10px 10px 0; }
  .polaroid-cap { font-size: .8rem; padding: 10px 4px 14px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .doodle-sparkle { display: none; }

  /* Header stacks: logo on top, full nav underneath, so every section stays
     reachable on a phone. */
  .header-inner {
    flex-wrap: wrap; justify-content: center;
    gap: 0; min-height: 0; padding-top: 10px; padding-bottom: 6px;
  }
  .brand { flex: 1 1 100%; justify-content: center; }
  .brand img { height: 26px; }
  .site-nav {
    flex: 1 1 100%; justify-content: space-between;
    gap: 8px; padding-bottom: 4px;
  }
  .site-nav a:not(.btn) {
    display: inline-flex; align-items: center;
    font-size: .9rem; min-height: 44px; padding: 0 2px;
  }
  .site-nav .btn-sm { padding: 11px 16px; }

  /* Comfortable touch targets */
  .link-more { display: inline-flex; align-items: center; min-height: 44px; }
  .video-meta { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-nav { gap: 4px 22px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .check input { width: 20px; height: 20px; }
  .lightbox { padding: 3vh 4vw; }
  .lightbox-figure { padding: 10px 10px 0; max-width: 92vw; }
  .lightbox-figure img { max-height: 66vh; }
  .lightbox-close { top: 10px; right: 12px; padding: 11px 18px; }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .doodle path { stroke-dashoffset: 0; animation: none !important; }
  .rec-dot { animation: none; }
  .tilt:hover { transform: none; }
  .polaroid-img:hover img { transform: none; }
  .lightbox, .lightbox-figure { transition: none; }
  .btn:hover { transform: none; }
}
