:root {
  --bg: #fbfbfb;
  --ink: #262626;
  --muted: #404040;
  --line: #262626;
  --accent: #3b6683;
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--body);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}

header,
main,
footer {
  max-width: 1440px;
  margin: auto;
  padding-left: 6%;
  padding-right: 6%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 105px;
  border-bottom: 3px solid #111;
}

.wordmark {
  font: 900 32px monospace;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.wordmark span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 36px;
  font-size: 14px;
}

nav a {
  text-decoration: underline;
}

nav a:last-child {
  margin-left: 32px;
}

nav span {
  color: var(--accent);
}

.hero {
  padding-top: 28px;
}

.eyebrow,
.hero-meta,
.project-heading > span,
.project-category,
.job-date,
.job-type,
.tags,
footer {
  font: 12px/1.6 monospace;
  letter-spacing: 0.07em;
}

.eyebrow {
  font-weight: bold;
  font-size: 14px;
}

.hero > .eyebrow {
  color: var(--accent);
  font-size: 14px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-family: var(--display);
  font-size: clamp(75px, 16vw, 220px);
  font-weight: 900;
  line-height: 0.83;
  letter-spacing: -0.09em;
  text-transform: uppercase;
  max-width: 900px;
  margin: 48px 0;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 7%;
  border-top: 3px solid #111;
  padding-top: 27px;
}

.hero h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(27px, 3.8vw, 51px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero h2 span {
  color: #111;
}

.intro p {
  color: #111;
  font-family: monospace;
  font-size: 14px;
  max-width: 430px;
}

.text-link {
  display: inline-flex;
  gap: 60px;
  margin-top: 25px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
  font-size: 14px;
  font-family: monospace;
  font-weight: bold;
  text-transform: uppercase;
}

.text-link span {
  color: var(--accent);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  border-top: 3px solid #111;
  margin-top: 35px;
  padding: 20px 0;
  color: var(--muted);
}

.section {
  border-top: 3px solid #111;
  padding: 55px 0;
  scroll-margin-top: 20px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 35px;
}

.section-title p {
  color: var(--muted);
  font-size: 14px;
}

.projects {
  display: block;
}

.project {
  display: grid;
  grid-template-columns: 1.05fr 1.6fr;
  column-gap: 55px;
  border-top: 2px solid #111;
  padding: 30px 0;
}

.project-text {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  grid-template-columns: 1fr;
}

.project-category {
  color: var(--muted);
  text-transform: uppercase;
  margin: 6px 0 18px;
}

.project-heading {
  grid-row: span 3;
  display: block;
  margin: 0;
}

.project-text .project-heading {
  grid-row: auto;
}

.project h3 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  max-width: 350px;
  margin-bottom: 20px;
}

.project-text h3 {
  max-width: none;
}

.project h3 span {
  font-size: 18px;
}

.project-heading > span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.project > p {
  font-family: monospace;
  font-size: 15px;
  line-height: 1.7;
  color: #111;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0;
}

.tags span {
  border: 1px solid #111;
  padding: 4px 9px;
  border-radius: 0;
  background: #fff;
}

details {
  margin-top: 20px;
  font-size: 14px;
  grid-column: 2;
}

.project-text details {
  grid-column: 1;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary span {
  transform: rotate(45deg);
}

.detail-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.about h2 {
  font: 400 clamp(30px, 3.6vw, 48px)/1.2 var(--display);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.about h2 span {
  color: var(--accent);
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
  font-family: monospace;
}

.about-columns a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 2px solid #111;
  padding-top: 28px;
  margin-top: 35px;
}

.skills h3 {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.skills p {
  font-size: 13px;
  color: var(--muted);
}

.print-button {
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 14px;
}

.job {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr;
  gap: 25px;
  border-top: 2px solid #111;
  padding: 32px 0;
}

.job-date,
.job-type {
  color: var(--muted);
  font-size: 11px;
}

.job-type {
  text-align: right;
}

.job h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.job h4 {
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  margin: 6px 0 13px;
}

.job p {
  color: var(--muted);
  font-size: 15px;
  max-width: 590px;
  font-family: monospace;
}

.contact {
  background: #111;
  color: #fff;
  padding: 40px;
  margin-bottom: 45px;
  border: 3px solid #111;
}

.contact h2 {
  font-family: var(--display);
  font-size: clamp(37px, 5.7vw, 76px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin: 35px 0;
}

.contact h2 span {
  color: #fff;
}

.contact-bottom {
  display: block;
}

.contact p {
  color: #fff;
  font-size: 15px;
  max-width: 520px;
  margin-bottom: 30px;
}

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 480px;
}

.form-honeypot {
  display: none;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font: 12px/1.6 monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  padding: 12px 14px;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus-visible,
.form-row textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.contact-form button {
  justify-self: start;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
}

.contact-link {
  background: #000;
  color: #fff;
  border: 2px solid var(--accent);
  padding: 14px 23px;
  font-family: monospace;
  font-size: 19px;
}

.contact-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.contact-link:focus-visible {
  outline-color: #fff;
}

footer {
  padding-top: 25px;
  padding-bottom: 30px;
  border-top: 3px solid #111;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

@media (min-width: 1500px) {
  header,
  main,
  footer {
    padding-left: 85px;
    padding-right: 85px;
  }
}

@media (max-width: 800px) {
  header,
  main,
  footer {
    padding-left: 6%;
    padding-right: 6%;
  }

  header {
    height: 90px;
  }

  nav {
    gap: 18px;
    font-size: 13px;
  }

  nav a:last-child {
    margin-left: 0;
  }

  .hero {
    padding-top: 35px;
  }

  h1 {
    margin-bottom: 30px;
  }

  .hero-bottom {
    gap: 30px;
  }

  .hero-meta {
    font-size: 10px;
  }

  .edition {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .project-heading > span {
    display: block;
    margin-top: 7px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .job {
    grid-template-columns: 1fr 2.5fr;
  }

  .job-type {
    display: none;
  }

  footer > span {
    display: none;
  }

  .project {
    column-gap: 25px;
  }

  .hero-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    padding: 25px;
  }
}

@media (max-width: 560px) {
  nav {
    gap: 13px;
  }

  nav a:last-child {
    display: none;
  }

  h1 {
    font-size: 23vw;
    max-width: 90%;
    margin: 32px 0;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 35px;
  }

  .hero-meta {
    gap: 18px;
    margin-top: 35px;
  }

  .section-title {
    align-items: start;
  }

  .section-title p {
    max-width: 155px;
    font-size: 12px;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .skills {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }

  .job {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-heading {
    grid-row: auto;
  }

  details {
    grid-column: 1;
  }

  .project h3 {
    font-size: 37px;
  }

  .contact {
    padding: 20px;
  }

  .contact h2 {
    font-size: 35px;
  }
}

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

  * {
    transition: none !important;
  }
}

@media print {
  header,
  .hero,
  .work,
  .contact,
  footer,
  .print-button {
    display: none !important;
  }

  body {
    --bg: white;
    --ink: black;
    --muted: #333;
    --line: #aaa;
    --accent: black;
    background: white;
    color: black;
  }

  main {
    padding: 0;
    max-width: 100%;
  }

  main:before {
    content: "Brian Clark — Developer & Designer | Hayden, Idaho";
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .section {
    padding: 20px 0;
  }

  .about {
    display: block;
  }

  .about > .eyebrow {
    margin-bottom: 15px;
  }

  .about h2 {
    font-size: 24px;
  }

  .job {
    break-inside: avoid;
    padding: 18px 0;
  }

  .job h3 {
    font-size: 20px;
  }

  .skills {
    margin-top: 20px;
  }

  .about-columns {
    display: block;
  }

  .about-columns p {
    margin-bottom: 10px;
  }

  a {
    text-decoration: none;
  }
}
