/*
Theme Name: hdpark.mov
Theme URI: https://hdpark.mov/
Author: Ha Joon "Daniel" Park
Description: Quiet, content-led portfolio and blog theme for hdpark.mov.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: hdpark
*/

/* hdpark.mov
   Quiet portfolio system for an artist, filmmaker, and maker.
   The site should feel edited, fast, and human; not like a themed terminal UI. */

:root {
  --bg: #0f0f0e;
  --surface: #171715;
  --surface-soft: #1f1f1c;
  --text: #f3f0e8;
  --muted: #aaa59b;
  --dim: #89847a;
  --border: #302f2b;
  --rule: #24231f;
  --accent: #d6b66d;
  --link: #9db7df;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0 auto;
  max-width: 76ch;
  padding: 2rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.45rem 0.65rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.8rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: end;
  margin-bottom: 4.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.site-logo {
  display: inline-flex;
  grid-row: span 2;
}

.site-logo img {
  display: block;
  width: 68px;
  height: 68px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: lowercase;
}

.site-nav li,
.site-footer .socials li {
  list-style: none;
}

.site-nav a {
  color: var(--text);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--accent);
}

.hero {
  margin-bottom: 3.25rem;
}

.hero.compact {
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: lowercase;
}

.site-title {
  margin: 0;
  max-width: 12ch;
  color: var(--text);
  font-size: 3.35rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 0.98;
}

.home-intro {
  max-width: 42ch;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-intro p {
  margin: 0;
}

.section-block {
  margin: 0 0 3.25rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.section-heading a {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.work-list,
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list {
  display: grid;
  gap: 0;
}

.work-list li,
.post-list li {
  border-bottom: 1px solid var(--rule);
}

.work-list li:first-child,
.post-list li:first-child {
  border-top: 1px solid var(--rule);
}

.work-list a {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.2rem 1rem;
  padding: 1rem 0;
  color: var(--text);
}

.work-list.large a {
  padding: 1.2rem 0;
}

.work-list a.no-type {
  grid-template-columns: 1fr;
}

.work-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.work-list a:hover .work-title {
  color: var(--accent);
}

.work-type {
  grid-row: span 2;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  text-transform: lowercase;
}

.work-title {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.3;
}

.work-description {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.post-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  color: var(--text);
}

.post-list a:hover {
  color: var(--text);
  text-decoration: none;
}

.post-list a:hover .post-list-title {
  color: var(--accent);
}

.post-list-title {
  display: block;
  max-width: 48ch;
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.35;
}

.post-list-description {
  display: block;
  max-width: 48ch;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.post-list-date {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.post-list li.empty {
  padding: 1rem 0;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.flavor-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.flavor-picker span {
  align-self: center;
}

.flavor-picker a {
  color: var(--muted);
}

.flavor-picker a.active,
.flavor-picker a:hover {
  color: var(--accent);
}

.post-meta {
  margin: 0 0 0.45rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.post h1,
.page h1 {
  margin: 0 0 1.45rem;
  max-width: 15ch;
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.05;
}

.post h2,
.page h2 {
  margin: 2.2rem 0 0.75rem;
  color: var(--text);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
}

.post h3,
.page h3 {
  margin: 1.8rem 0 0.65rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.post p,
.page p {
  color: var(--text);
}

.post img,
.page img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.post figure,
.page figure {
  margin: 1.5rem 0;
}

.post figcaption,
.page figcaption {
  margin-top: 0.45rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  padding: 1rem 0;
  border-block: 1px solid var(--rule);
}

.project-details dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.project-details dd {
  margin: 0.2rem 0 0;
}

.post-hero {
  margin-bottom: 1.5rem;
}

.post blockquote,
.page blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.post code,
.page code {
  border-radius: 3px;
  background: var(--surface-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.32em;
}

.post pre,
.page pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.post pre code,
.page pre code {
  background: transparent;
  padding: 0;
}

.post-flavors {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.4rem 0 0;
  padding: 0;
}

.post-flavors a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.post-flavors a:hover {
  color: var(--accent);
}

.site-footer {
  margin-top: 4.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.site-rule {
  height: 1px;
  margin-bottom: 1rem;
  background: var(--rule);
}

.site-footer p {
  margin: 0.65rem 0;
}

.site-footer .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.65rem 0;
  padding: 0;
}

.contact-page {
  max-width: 42rem;
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.8rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.contact-field textarea {
  min-height: 12rem;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-submit:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-submit {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--accent);
  font: 0.86rem var(--mono);
  cursor: pointer;
}

.contact-submit:hover {
  background: var(--accent);
  color: var(--background);
}

.contact-privacy {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-success {
  margin-top: 2rem;
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1rem;
}

@media (max-width: 640px) {
  body {
    padding: max(1.25rem, env(safe-area-inset-top)) 1rem 3rem;
    font-size: 1rem;
  }

  .site-header {
    display: block;
    margin-bottom: 3.25rem;
  }

  .site-logo img {
    width: 58px;
    height: 58px;
  }

  .site-tagline {
    margin-top: 1rem;
    font-size: 0.88rem;
  }

  .site-nav {
    margin-top: 1rem;
    gap: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .hero {
    margin-bottom: 2.6rem;
  }

  .eyebrow {
    font-size: 0.76rem;
  }

  .site-title {
    max-width: 10ch;
    font-size: 2.35rem;
    line-height: 1;
  }

  .home-intro {
    margin-top: 1.15rem;
    font-size: 1rem;
  }

  .section-block {
    margin-bottom: 2.75rem;
  }

  .work-list a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 1rem 0;
  }

  .work-type {
    grid-row: auto;
  }

  .post-list a {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .post-list-title {
    font-size: 1rem;
  }

  .post h1,
  .page h1 {
    max-width: 12ch;
    font-size: 2rem;
  }
}
