:root {
  color-scheme: light;
  --ink: #171918;
  --muted: #626a64;
  --paper: #f6f2ea;
  --surface: #fffaf1;
  --line: rgba(23, 25, 24, 0.14);
  --accent: #0d4a3b;
  --accent-ink: #f8f5ed;
  --silver: #d8d6cc;
  --shadow: 0 24px 70px rgba(23, 25, 24, 0.12);
  font-family:
    "Inter",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--ink);
}

.site-header--solid {
  position: sticky;
  background: rgba(246, 242, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 13px;
  color: rgba(23, 25, 24, 0.72);
}

.nav a {
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.nav a:hover {
  border-color: currentColor;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 126px clamp(20px, 6vw, 96px) 72px;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(246, 242, 234, 0.95) 0%, rgba(246, 242, 234, 0.68) 44%, rgba(246, 242, 234, 0.18) 100%),
    url("assets/hiroyal-hero.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(20px, 6vw, 96px) 0;
  height: 1px;
  background: var(--line);
}

.hero__content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(76px, 13vw, 172px);
  font-weight: 500;
  line-height: 0.9;
}

.lead {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 650;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button--ghost {
  background: rgba(255, 250, 241, 0.52);
  color: var(--ink);
}

.section {
  padding: 84px clamp(20px, 6vw, 96px);
}

.section--compact {
  padding-top: 34px;
}

.section--notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: #ece8dc;
  padding-top: 28px;
  padding-bottom: 28px;
}

.section--notice p {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.section--notice a {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.section--intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr);
  gap: clamp(30px, 6vw, 92px);
  background: var(--surface);
}

.section__heading {
  max-width: 520px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 500;
  line-height: 1;
}

.intro-grid {
  display: grid;
  gap: 22px;
  color: var(--muted);
  font-size: 16px;
}

.intro-grid p {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.feature-list article {
  min-height: 220px;
  padding: 28px;
  background: var(--surface);
}

.feature-list span {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.section--articles {
  background: #ece8dc;
}

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

.article-list--wide {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.article-list a,
.article-list article {
  display: block;
  min-height: 240px;
  padding: 28px;
  background: var(--surface);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.article-list a:hover {
  background: #fffdf8;
  transform: translateY(-1px);
}

.article-list span {
  display: block;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-list h2,
.article-list h3 {
  max-width: 760px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.12;
}

.article-list p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.page {
  min-height: calc(100svh - 96px);
}

.page-hero {
  padding: 92px clamp(20px, 6vw, 96px) 48px;
}

.page-hero h1,
.legal h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 500;
  line-height: 0.96;
}

.post h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 1.16;
}

.page-hero p:not(.eyebrow) {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.legal {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 84px;
}

.post {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 84px;
}

.legal h2,
.post h2 {
  margin: 48px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.22;
}

.post h3 {
  margin: 32px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.legal p,
.post p,
.post li {
  color: var(--muted);
  font-size: 16px;
}

.post p,
.post li {
  line-height: 1.95;
}

.post p {
  margin-bottom: 20px;
}

.post ul {
  margin: 0 0 22px;
  padding-left: 1.2em;
}

.prompt-box {
  margin: 24px 0 30px;
  border: 1px solid rgba(13, 74, 59, 0.2);
  background: var(--surface);
  padding: 20px;
}

.prompt-box p {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
}

.prompt-box p:last-child {
  margin-bottom: 0;
}

.prompt-box--muted {
  border-color: var(--line);
  background: #ece8dc;
}

.updated {
  margin-bottom: 34px;
  color: rgba(23, 25, 24, 0.55);
  font-size: 13px;
}

.affiliate-note {
  margin: 34px 0;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 30px clamp(20px, 6vw, 96px);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: 20px;
}

.site-footer a {
  border-bottom: 1px solid currentColor;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    padding-top: 18px;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 112px;
  }

  .hero__media {
    background:
      linear-gradient(180deg, rgba(246, 242, 234, 0.98) 0%, rgba(246, 242, 234, 0.84) 58%, rgba(246, 242, 234, 0.42) 100%),
      url("assets/hiroyal-hero.png") center bottom / cover no-repeat;
  }

  h1 {
    font-size: clamp(64px, 22vw, 104px);
  }

  .lead {
    font-size: 18px;
  }

  .section,
  .section--intro {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section--notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .section--intro {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .article-list {
    grid-template-columns: 1fr;
  }

  .feature-list article,
  .article-list a,
  .article-list article {
    min-height: auto;
  }

  .feature-list span {
    margin-bottom: 28px;
  }

  .article-list span {
    margin-bottom: 26px;
  }

  .page-hero,
  .legal,
  .post {
    padding-top: 48px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
