/*
Theme Name: CasualNoises
Theme URI: https://casualnoises.com
Author: CasualNoises
Description: A minimal WordPress theme for the Fellhorn Eurorack module.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: casual-noises
*/

:root {
  --paper: #f4f1e9;
  --ink: #171714;
  --muted: #6d6b62;
  --line: #c9c4b8;
  --panel: #e9e4d8;
  --signal: #e7502c;
  --content: 1180px;
  --reading: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

iframe {
  border: 0;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-title a {
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  min-height: 70vh;
  padding: clamp(80px, 14vw, 180px) 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(64px, 14vw, 178px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.hero__intro {
  max-width: 390px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.35;
}

.section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.section__label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__body {
  max-width: 850px;
}

.section__body > :first-child {
  margin-top: 0;
}

.section__body > :last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 790px;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec {
  min-height: 130px;
  padding: 22px;
  background: var(--paper);
}

.spec dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.media-placeholder {
  display: grid;
  min-height: 460px;
  place-items: center;
  margin-top: 36px;
  padding: 30px;
  background:
    linear-gradient(135deg, transparent 49.8%, rgba(23, 23, 20, 0.14) 50%, transparent 50.2%),
    var(--panel);
  color: var(--muted);
  text-align: center;
}

.document-list,
.post-list {
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

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

.document-list a,
.post-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  text-decoration: none;
}

.document-list a::after {
  content: "Download";
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-list time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.entry {
  width: min(calc(100% - 40px), var(--reading));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) 0;
}

.entry-header {
  margin-bottom: 52px;
}

.entry-title {
  margin: 0 0 18px;
  font-size: clamp(48px, 8vw, 100px);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.entry-meta {
  color: var(--muted);
  font-size: 14px;
}

.entry-content > * {
  max-width: var(--reading);
}

.entry-content > .alignwide {
  width: min(100vw - 40px, var(--content));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.2em;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.entry-content h2 {
  font-size: clamp(32px, 5vw, 52px);
}

.entry-content h3 {
  font-size: 27px;
}

.entry-content figure {
  margin-top: 40px;
  margin-bottom: 40px;
}

.entry-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav ul {
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 84px 0 52px;
  }

  .hero h1 {
    font-size: clamp(70px, 25vw, 120px);
  }

  .section {
    grid-template-columns: 1fr;
    padding: 58px 0;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .media-placeholder {
    min-height: 260px;
  }

  .document-list a,
  .post-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
