/*
Theme Name: Runewide Copper
Theme URI: https://runewide.com/
Author: Runewide
Description: A restrained, copper-and-graphite one-page theme for the Runewide holding company.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: runewide-copper
*/

:root {
  --ink: #171a1b;
  --ink-soft: #222728;
  --ink-raised: #292e2f;
  --copper: #c77b46;
  --copper-light: #e0a06d;
  --copper-dark: #99562f;
  --paper: #f1ece4;
  --paper-muted: #bdb6ad;
  --line: rgba(224, 160, 109, 0.22);
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.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;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  z-index: 9999;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 26, 27, 0.12);
  background: rgba(241, 236, 228, 0.96);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: min(265px, 50vw); display: block; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: #494743;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--copper-dark); }

.hero {
  position: relative;
  min-height: 810px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(199, 123, 70, 0.17), transparent 31%),
    linear-gradient(135deg, #191c1d 0%, #111314 70%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 570px;
  height: 570px;
  right: -118px;
  top: 150px;
  border: 1px solid rgba(224, 160, 109, 0.22);
  transform: rotate(45deg);
}

.hero::after {
  content: "R";
  position: absolute;
  right: 4vw;
  bottom: -0.35em;
  color: rgba(199, 123, 70, 0.05);
  font-family: var(--serif);
  font-size: clamp(28rem, 48vw, 49rem);
  line-height: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 195px 0 118px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  color: var(--copper-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }

.hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9.2vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.hero h1 em { color: var(--copper-light); font-weight: 400; }

.hero__summary {
  max-width: 650px;
  margin: 38px 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero__rule { width: 112px; height: 3px; margin-top: 48px; background: var(--copper); }

.section { padding: 112px 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--raised { background: var(--ink-soft); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.36fr) 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 72px;
}

.section-index {
  color: var(--copper-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 70px;
}

.intro-copy { max-width: 760px; font-size: clamp(1.15rem, 2vw, 1.48rem); }
.intro-copy p { margin: 0 0 1.25em; }
.intro-copy p:last-child { margin-bottom: 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  min-height: 290px;
  padding: 42px 34px 34px 0;
  border-right: 1px solid var(--line);
}
.principle + .principle { padding-left: 34px; }
.principle:last-child { border-right: 0; }
.principle__number { color: var(--copper-light); font-family: var(--serif); font-size: 1.1rem; }
.principle h3 { margin: 64px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.principle p { margin: 0; color: var(--paper-muted); font-size: 0.96rem; }

.company-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 27, 0.15);
  background: #e8e1d7;
}

.company-card__mark {
  display: grid;
  place-items: center;
  padding: 54px;
  background:
    radial-gradient(circle at 40% 38%, rgba(20, 162, 170, 0.13), transparent 42%),
    linear-gradient(145deg, #1d2527, #111516);
}
.company-card__mark img { display: block; width: min(330px, 92%); max-height: 310px; }

.company-card__content { display: flex; flex-direction: column; justify-content: center; padding: 64px; }
.company-card__label { color: var(--copper-dark); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.company-card h3 { margin: 26px 0 30px; }
.ryvaren-wordmark { display: block; width: min(470px, 100%); }
.company-card p { max-width: 480px; margin: 0; color: #53504c; }
.company-card__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.company-card__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }

.quiet-note {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 90px;
  align-items: end;
}
.quiet-note h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; letter-spacing: -0.05em; line-height: 0.98; }
.quiet-note p { max-width: 610px; margin: 0; color: var(--paper-muted); font-size: 1.08rem; }

.contact-section {
  background:
    radial-gradient(circle at 12% 100%, rgba(199, 123, 70, 0.12), transparent 35%),
    #171a1b;
  border-top: 1px solid rgba(224, 160, 109, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-item {
  min-height: 170px;
  margin: 0;
  padding: 38px 34px 38px 0;
  border-right: 1px solid var(--line);
  color: var(--paper);
  font-size: 1.03rem;
  font-style: normal;
}

.contact-item + .contact-item { padding-left: 34px; }
.contact-item:last-child { border-right: 0; }
.contact-item a { text-decoration: none; text-underline-offset: 5px; }
.contact-item a:hover,
.contact-item a:focus-visible { color: var(--copper-light); text-decoration: underline; }
.contact-item__label {
  display: block;
  margin-bottom: 25px;
  color: var(--copper-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer { padding: 42px 0; border-top: 1px solid rgba(23, 26, 27, 0.12); background: var(--paper); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.site-footer img { width: 185px; }
.site-footer p { margin: 0; color: #6d6861; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.standard-page { min-height: 70vh; padding: 170px 0 100px; }
.standard-page h1 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); font-weight: 400; line-height: 1; }
.entry-content { max-width: 760px; }

@media (max-width: 820px) {
  .site-header__inner { min-height: 80px; }
  .site-nav { display: none; }
  .hero { min-height: 720px; }
  .hero__content { padding: 160px 0 82px; }
  .section { padding: 80px 0; }
  .section-heading,
  .intro-grid,
  .quiet-note { grid-template-columns: 1fr; gap: 28px; }
  .principles { grid-template-columns: 1fr; }
  .principle,
  .principle + .principle { min-height: auto; padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .principle h3 { margin-top: 34px; }
  .company-card { grid-template-columns: 1fr; }
  .company-card__mark { min-height: 280px; }
  .company-card__mark img { width: min(250px, 85%); max-height: 220px; }
  .company-card__content { padding: 42px 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item,
  .contact-item + .contact-item { min-height: auto; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-item:last-child { border-bottom: 0; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
