@charset "utf-8";
/*
 * Seth Skocelas — site.css
 *
 * Replaces css/bootstrap.min.css (114 KB), css/grayscale.css and css/style.css.
 * Same visual language as the old Start Bootstrap "Grayscale" theme: black page,
 * white Lora body copy, uppercase Montserrat headings and nav, #42dca3 accent.
 * Only the pieces this site actually uses are implemented, in modern CSS.
 */

/* ---------- tokens ---------- */
:root {
  --bg: #000;
  --fg: #fff;
  --fg-dim: rgba(255, 255, 255, .8);
  --rule: rgba(255, 255, 255, .3);
  --accent: #42dca3;
  --accent-dark: #1d9b6c;
  --field-bg: #e6e6e6;
  --field-border: #191919;
  --field-text: #111;
  --label: #e6e6e1;
  --error: #f2a294;
  --success: #9bd32d;

  --font-body: Lora, Georgia, "Times New Roman", serif;
  --font-head: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 66ch;
  --gutter: 1.25rem;
  --nav-h: 3.5rem;

  --motion: .3s;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion: 0s; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + .5rem);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .2);
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 1.5rem;
  padding-top: 2.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.4rem; }

@media (min-width: 768px) {
  body { font-size: 20px; line-height: 1.6; }
  p { margin-bottom: 1.75rem; }
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: color var(--motion) ease-in-out;
}

a:hover, a:focus { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: rgba(255, 255, 255, .2); text-shadow: none; }

ul, ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
li { margin-bottom: .5rem; }

hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--rule); }

/* ---------- helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: .75rem; top: -3rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .2s ease-in-out;
}
.skip-link:focus { top: .75rem; color: #000; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.measure { max-width: var(--measure); }

.section-title { text-align: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  font-family: var(--font-head);
  text-transform: uppercase;
  transition: background var(--motion) ease-in-out, padding var(--motion) ease-in-out, border-color var(--motion) ease-in-out;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--fg);
  text-decoration: none;
}
.brand:hover, .brand:focus { color: var(--fg-dim); }
.brand svg { width: 1.1em; height: 1.1em; fill: currentColor; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .7rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .06em;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus { background: rgba(255, 255, 255, .12); }

.nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle__bars span { display: block; height: 2px; background: currentColor; }

.site-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.site-nav li + li { border-top: 1px solid var(--rule); }
.site-nav a {
  display: block;
  padding: .85rem .4rem;
  color: var(--fg);
  font-size: 14px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background var(--motion) ease-in-out, color var(--motion) ease-in-out;
}
.site-nav a:hover, .site-nav a:focus { color: var(--fg-dim); background: rgba(255, 255, 255, .12); }
.site-nav a.is-current { background: rgba(255, 255, 255, .3); color: var(--fg); }

/* collapsed nav only when JS is available; without JS the links stay visible */
html.js .site-nav[hidden] { display: none; }

@media (min-width: 768px) {
  .site-header { padding: 1rem 0; border-bottom: 0; background: transparent; }
  .site-header.is-scrolled { padding: 0; border-bottom: 1px solid var(--rule); background: var(--bg); }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; border-top: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a { padding: .35rem .8rem; }
  html.js .site-nav[hidden] { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: calc(var(--nav-h) + 2rem) 0 3rem;
  overflow: clip;
  text-align: center;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .7));
}

@media (min-width: 768px) {
  .hero { min-height: 100svh; }
}

.hero h1 { margin: 0 0 1rem; padding-top: 0; }
.hero p {
  max-width: 44ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}

.scroll-cue {
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  color: var(--fg);
  transition: background var(--motion) ease-in-out;
}
.scroll-cue svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; }
.scroll-cue:hover, .scroll-cue:focus { background: rgba(255, 255, 255, .12); color: var(--fg); }
.scroll-cue:hover svg { animation: pulse 1.5s linear infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ---------- sections ---------- */
.section {
  padding: 2.5rem 0;
  scroll-margin-top: var(--nav-h);
}

@media (min-width: 768px) {
  .section { padding: 3.5rem 0; }
}

.section--projects {
  position: relative;
  padding: 3rem 0;
  overflow: clip;
}
.section--projects .container { position: relative; z-index: 1; }
.section--projects__media { position: absolute; inset: 0; z-index: 0; }
.section--projects__media img { width: 100%; height: 100%; object-fit: cover; }
.section--projects__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}
@media (min-width: 768px) { .section--projects { padding: 5rem 0; } }

.section--contact { padding: 3rem 0; }
@media (min-width: 768px) { .section--contact { padding: 5rem 0; } }

/* ---------- project tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--rule);
  transition: border-color var(--motion) ease-in-out;
}
.tile a:hover img, .tile a:focus-visible img { border-color: var(--accent); }

.tile__title {
  margin: .9rem 0 .25rem;
  padding-top: 0;
  font-size: 1.05rem;
}
.tile__title a {
  color: var(--fg);
  font-family: var(--font-head);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.tile__title a:hover, .tile__title a:focus { color: var(--accent); }

.tile__meta {
  margin: 0;
  font-size: 15px;
  color: var(--fg-dim);
}

/* ---------- project pages ---------- */
.page-head {
  padding: calc(var(--nav-h) + 2.5rem) 0 1rem;
  text-align: center;
}
.page-head h1 { padding-top: 0; }
.page-head .lede { max-width: 60ch; margin: 0 auto; color: var(--fg-dim); }

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tags li { margin: 0; padding: .35rem .7rem; border: 1px solid var(--rule); border-radius: .25rem; }

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.shots img {
  width: 100%;
  max-width: 260px;
  border: 1px solid var(--rule);
}
.shots--wide img { max-width: 440px; }

.prose { max-width: var(--measure); margin: 0 auto; }

.back-link { display: inline-block; margin-top: 2rem; font-family: var(--font-head); font-size: 14px; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: .2rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion) ease-in-out, color var(--motion) ease-in-out;
}
.btn:hover, .btn:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #000; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }

.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--accent); color: #000; }

/* ---------- contact form ---------- */
.contact-intro { max-width: var(--measure); margin: 0 auto 2rem; text-align: center; }

.contact-form { max-width: 720px; margin: 0 auto; }

.field-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .field-row--split { grid-template-columns: 1fr 1fr; }
}

.contact-form label {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--label);
}
.contact-form .req { color: var(--accent); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--field-border);
  border-radius: .2rem;
  background: var(--field-bg);
  color: var(--field-text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Flagged by contact.php through site.js when a field needs another attempt. */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.hp-field { position: absolute; left: -9999px; width: 200px; }

.form-note {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-dim);
}

.status {
  margin: 0 0 1.5rem;
  padding: .9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  font-family: var(--font-head);
  font-size: 15px;
}
.status[hidden] { display: none; }
.status--ok { border-color: var(--success); color: var(--success); background: rgba(155, 211, 45, .1); }
.status--err { border-color: var(--error); color: var(--error); background: rgba(242, 162, 148, .1); }
.status--busy { border-color: var(--rule); color: var(--fg-dim); background: rgba(255, 255, 255, .05); }

.field-errors { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--error); font-size: 16px; }
.field-errors li { margin-bottom: .3rem; }

/* ---------- footer ---------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 15px;
  color: var(--fg-dim);
}
.site-footer p { margin: 0 0 1rem; }
.site-footer a { color: var(--accent); }

/* ---------- misc pages (privacy/help) ---------- */
.article { max-width: 72ch; margin: 0 auto; }
.article figure { margin: 2rem 0; }
.article figure img { margin: 0 auto; border: 1px solid var(--rule); }
.article figcaption { margin-top: .6rem; font-size: 15px; color: var(--fg-dim); text-align: center; }

/* The privacy notice is a generator export whose inline styles paint grey text and
   blue links onto a black page, and size everything in 14-15px Arial. The wording
   stays; the styling is handed back to this stylesheet. Real h1/h2/h3 elements
   come from tools/refresh_privacy.py, so headings inherit the theme sizes. */
.article [data-custom-class] {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}
.article [data-custom-class='subtitle'] { color: var(--fg-dim) !important; }
.article [data-custom-class='body_text'], .article [data-custom-class='body_text'] * { line-height: 1.6; }
.article [data-custom-class='link'], .article [data-custom-class='link'] * {
  color: var(--accent) !important;
  text-decoration: underline;
  word-break: break-word;
}
.article [data-custom-class='link']:hover, .article [data-custom-class='link']:focus {
  color: var(--accent-dark) !important;
}
.article ul { list-style-type: square; }
.article ul > li > ul { list-style-type: circle; }
.article ul > li > ul > li > ul { list-style-type: square; }
.article li { margin: .35rem 0; }
.article .policy-credit {
  margin-top: 2.5rem;
  font-size: 15px;
  color: var(--fg-dim);
}

/* Screenshots on the app info guide stay centred, as on the original page. */
.guide__shot { margin: 1.5rem 0; text-align: center; }
.guide__shot img {
  display: inline-block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border: 1px solid var(--rule);
}
