@charset "utf-8";

:root {
  color-scheme: light;
  --ink: #17140f;
  --paper: #f3ecdc;
  --paper-soft: #fff9ea;
  --paper-dim: #d7cbb5;
  --line: rgba(45, 39, 28, 0.22);
  --muted: #6b6252;
  --stamp: #9b352d;
  --link: #24536b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --serif: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  --sans: Inter, "Hiragino Sans", "Yu Gothic", "YuGothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f3ecdc;
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-break: strict;
}

body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #f4ecd9, #e7ddc8);
  overflow-x: hidden;
}

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

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

code,
pre {
  font-family: var(--mono);
}

.specimen-page {
  color: var(--ink);
}

.specimen-page .wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.specimen-hero {
  position: relative;
  min-height: clamp(225px, 31.5vw, 345px);
  color: var(--paper-soft);
  background: #11120f;
  overflow: hidden;
  isolation: isolate;
}

.specimen-hero::before,
.specimen-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.specimen-hero::before {
  background:
    linear-gradient(90deg, rgba(10, 13, 11, 0.74) 0%, rgba(10, 13, 11, 0.32) 52%, rgba(10, 13, 11, 0.58) 100%),
    linear-gradient(180deg, rgba(10, 13, 11, 0.04), rgba(10, 13, 11, 0.58));
}

.specimen-hero::after {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 6px);
  opacity: 0.9;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #14130f;
}

.site-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 249, 234, 0.88);
}

.brand,
.back {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid rgba(255, 249, 234, 0.38);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.back {
  opacity: 0.84;
  text-align: right;
}

.back:hover {
  opacity: 1;
}

.hero-body {
  max-width: 860px;
  padding: clamp(24px, 3.4vw, 54px) 0 clamp(22px, 3vw, 44px);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(255, 249, 234, 0.32);
  background: rgba(17, 17, 14, 0.36);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 12px;
  max-width: 980px;
}

.title-row h1 {
  margin: 0;
}

.title-icon {
  width: clamp(46px, 5vw, 68px);
  height: clamp(46px, 5vw, 68px);
  flex: 0 0 auto;
  object-fit: cover;
  padding: 6px;
  border: 1px solid rgba(255, 249, 234, 0.36);
  background: rgba(255, 249, 234, 0.88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.specimen-page .title-row h1 {
  margin: 0;
}

.specimen-page h1 {
  margin: 18px 0 12px;
  max-width: 960px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
  color: #fff8e8;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 249, 234, 0.92);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.58;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

.specimen-page main {
  color: var(--ink);
}

.content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) 0 clamp(56px, 7vw, 86px);
}

.article-body {
  font-size: 18px;
  line-height: 1.88;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 2.1em 0 0.65em;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
  color: #2b251b;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}

.article-body p {
  margin: 0 0 1.05em;
  color: #302a20;
}

.article-body a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-body ul,
.article-body ol {
  margin: 1.15em 0 1.35em;
  padding-left: 1.35em;
}

.article-body li {
  margin: 0.42em 0;
  padding-left: 0.12em;
  overflow-wrap: normal;
  word-break: normal;
  line-break: strict;
}

.article-body blockquote {
  margin: 1.55em 0;
  padding: 18px 20px;
  border-left: 4px solid var(--stamp);
  background: rgba(255, 250, 239, 0.62);
  color: #40382c;
  font-family: var(--serif);
  font-size: 1.08em;
  line-height: 1.78;
}

.article-body blockquote p {
  margin: 0;
}

.article-body pre {
  max-width: 100%;
  margin: 1.35em 0 1.55em;
  padding: 16px 18px;
  border: 1px solid rgba(45, 39, 28, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.72), rgba(238, 229, 211, 0.84)),
    repeating-linear-gradient(90deg, rgba(67, 55, 37, 0.045) 0 1px, transparent 1px 9px);
  color: #2f2a22;
  font-size: 15px;
  line-height: 1.78;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-overflow-scrolling: touch;
}

.article-body pre > code {
  display: block;
  width: calc(100% + 8ch);
  margin-left: -8ch;
  text-indent: 8ch;
}

.article-body :not(pre) > code {
  padding: 0.12em 0.34em;
  border: 1px solid rgba(45, 39, 28, 0.14);
  border-radius: 4px;
  background: rgba(255, 250, 239, 0.72);
  color: #2e281e;
  font-size: 0.92em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.article-body hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid rgba(45, 39, 28, 0.22);
}

.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.35em 0 1.55em;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.95em;
  line-height: 1.65;
  -webkit-overflow-scrolling: touch;
}

.article-body th,
.article-body td {
  padding: 0.62em 0.72em;
  border: 1px solid rgba(45, 39, 28, 0.18);
  vertical-align: top;
}

.article-body th {
  background: rgba(255, 250, 239, 0.64);
  font-weight: 700;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: var(--stamp);
}


@media (max-width: 760px) {
  .specimen-page .wrap,
  .content {
    width: min(100% - 28px, 860px);
  }

  .specimen-hero {
    min-height: auto;
  }

  .specimen-hero::before {
    background:
      linear-gradient(180deg, rgba(10, 13, 11, 0.66) 0%, rgba(10, 13, 11, 0.48) 48%, rgba(10, 13, 11, 0.78) 100%);
  }

  .hero-media {
    min-height: 100%;
    object-position: center;
  }

  .site-header {
    min-height: 58px;
    align-items: flex-start;
    gap: 10px;
    padding-top: 15px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .brand {
    gap: 8px;
  }

  .back {
    max-width: 9.5em;
    line-height: 1.45;
  }

  .hero-body {
    padding: 58px 0 54px;
  }

  .title-row {
    gap: 12px;
    align-items: flex-start;
    margin-top: 14px;
  }

  .title-icon {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  .specimen-page h1 {
    margin-top: 14px;
    font-size: clamp(32px, 9.4vw, 46px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .lead {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.62;
    text-wrap: balance;
  }

  .content {
    padding: 32px 0 58px;
  }

  .article-body {
    font-size: 22px;
    line-height: 1.92;
  }

  .article-body h2 {
    font-size: clamp(27px, 7.1vw, 31px);
    line-height: 1.3;
  }

  .article-body blockquote {
    padding: 15px 16px;
  }

  .article-body pre {
    margin-left: -2px;
    margin-right: -2px;
    padding: 16px;
    font-size: 19px;
    line-height: 1.82;
  }
}

@media (max-width: 420px) {
  .specimen-page .wrap,
  .content {
    width: min(100% - 24px, 860px);
  }

  .site-header {
    font-size: 10px;
  }

  .mark {
    width: 24px;
    height: 24px;
  }

  .hero-body {
    padding-top: 48px;
  }

  .specimen-page h1 {
    font-size: clamp(31px, 9.2vw, 40px);
  }

  .article-body {
    font-size: 22px;
  }

  .article-body h2 {
    font-size: 27px;
  }
}


@supports (word-break: auto-phrase) {
  .specimen-page h1,
  .lead,
  .article-body,
  .article-body h2,
  .article-body li {
    word-break: auto-phrase;
  }
}
