@charset "UTF-8";

:root {
  --font-serif: "Newsreader", Georgia, Cambria, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-sans-ui: clamp(0.92em, 0.9em + 0.08vw, 0.98em);
  --color-dark: #0B0908;
  --color-light: #DDD2C8;
  --color-link: #3A467F;
  --color-link-light: #D85B4F;
  --color-rule: var(--color-light);
  --color-background-light: #F7EDE8;
  --page-background-color: #F9EEE6;
  --space-2xs: 0.1rem;
  --space-xs: 0.25rem;
  --space-sm: 0.4rem;
  --space-md: 0.5rem;
  --space-lg: 0.75rem;
  --space-xl: 1rem;
  --space-2xl: 1.25rem;
  --space-3xl: 1.5rem;
  --space-4xl: 2rem;
  --space-5xl: 3rem;
  --space-6xl: 3.5rem;
  --space-7xl: 4rem;
  --page-gutter: clamp(1.4em, 1.05em + 1vw, 2em);
  --flow-space: clamp(0.95em, 0.9em + 0.18vw, 1.1em);
  --flow-space-tight: clamp(0.7em, 0.66em + 0.12vw, 0.8em);
  --section-space: var(--space-4xl);
  --space-heading: clamp(0.9rem, 0.84rem + 0.2vw, 1.1rem);
  --space-section: var(--space-5xl);
  --space-section-tight: var(--space-4xl);
  --space-flow-loose: clamp(1.3em, 1.22em + 0.25vw, 1.5em);
  --type-body: clamp(1em, 0.98em + 0.08vw, 1.06em);
  --type-h3: clamp(1em, 0.96em + 0.12vw, 1.08em);
  --type-h2: clamp(1.5em, 1.28em + 0.55vw, 1.9em);
  --type-intro: clamp(1.25em, 1.12em + 0.34vw, 1.5em);
  --type-h1: clamp(1.5em, 0.17em + 3.33vw, 3em);
  --content-width: 50em;
  --measure: 75ex;
  --measure-wide: 82ex;
  --rule-border: 1px solid var(--color-rule);
  --profile-stamp-size: 17em;
  --profile-image-size: 14em;
  --profile-stamp-gap: 3em;
  --page-background: linear-gradient(135deg,
    rgba(90, 85, 255, 0.05),
    rgba(255, 148, 77, 0.1),
    #fef6ed
  );
  --page-background-size: 200% 200%;
  --page-background-position: 0% 50%;
  --page-background-rest-position: 50% 50%;
  --page-background-blend-mode: lighten;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

body,
h1,
h2,
h3,
p,
ul[class],
ol[class] {
  margin: 0;
}

html {
  background-color: var(--page-background-color);
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  color: var(--color-dark);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.98rem + 0.08vw, 1.06rem);
  font-size-adjust: 0.5;
  font-style: normal;
  font-weight: 400;
  height: 100%;
  width: 100%;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  padding: 0;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

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

.wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  padding: var(--page-gutter);
  width: 100%;
}

.inner {
  margin: 0 auto;
  max-width: var(--content-width);
}

.wrapper-writing .inner {
  display: block;
  margin: var(--flow-space) auto;
}

.wrapper-main .inner {
  max-width: var(--measure-wide);
}

.area-main {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--flow-space);
}

.area-image {
  position: relative;
}

.wrapper-main .area-image {
  margin-bottom: var(--space-2xl);
}

.profile-stamp {
  aspect-ratio: 1;
  display: grid;
  margin: 0;
  place-items: center;
  position: relative;
  width: var(--profile-stamp-size);
}

.profile-stamp-text {
  color: var(--color-dark);
  transform: rotate(67deg);
  display: block;
  height: 100%;
  inset: 0;
  opacity: 0.8;
  position: absolute;
  width: 100%;
}

.profile-stamp-copy {
  fill: color-mix(in srgb, var(--page-background-color) 50%, var(--color-dark) 50%);
  font-family: var(--font-sans);
  font-size-adjust: none;
  font-size: 0.495rem;
  font-weight: 600;
  letter-spacing: 0.225em;
  text-transform: uppercase;
}

.profile-stamp img {
  border-radius: 50%;
  display: block;
  height: var(--profile-image-size);
  margin: 0;
  object-fit: cover;
  position: relative;
  width: var(--profile-image-size);
}

nav {
  margin: var(--flow-space) auto;
  max-width: var(--measure);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--color-dark);
  color: var(--color-background-light);
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.date {
  color: rgba(6, 6, 6, 0.5);
  font-family: var(--font-sans);
  font-size: var(--type-sans-ui);
  margin: var(--flow-space) 0;
}

.post-meta-tag {
  color: var(--color-link);
}

.post-list-date {
  font-family: var(--font-sans);
  font-size: var(--type-sans-ui);
  opacity: 0.5;
}

.date sup,
.post-list-date sup {
  font-size: 0.65em;
  line-height: 0;
}

.breadcrumbs {
  display: flex;
  font-family: var(--font-sans);
  font-size: var(--type-sans-ui);
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-sm);
}

h1 {
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  max-width: 30ex;
}

h2 {
  font-size: var(--type-h2);
  line-height: 1.2;
  margin: 0 0 var(--space-heading);
}

h3 {
  font-size: var(--type-h3);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h3 + p {
  margin-top: 0;
}

p {
  font-size: var(--type-body);
  margin-bottom: var(--flow-space);
  max-width: var(--measure);
}

.posttext {
  max-width: var(--measure);
}

.posttext ul,
.posttext ol {
  margin: 0 0 var(--flow-space);
  padding-left: 1.4em;
}

.posttext li + li {
  margin-top: var(--flow-space-tight);
}

.posttext li::marker {
  color: rgba(6, 6, 6, 0.5);
}

.page-content-header {
  margin-bottom: var(--space-3xl);
}

.page-content-header .profile-stamp {
  margin-bottom: var(--space-3xl);
}

.tag-page-header h1 {
  margin-bottom: var(--flow-space-tight);
}

.posttext footer {
  margin-top: var(--space-section);
}

.posttext h2 {
  margin-bottom: var(--flow-space-tight);
  margin-top: calc(var(--flow-space) + var(--flow-space-tight));
}

.posttext header + p:first-of-type {
  font-size: var(--type-intro);
  line-height: 1.5;
}

.posttext p img {
  border-radius: 0.35rem;
}

.intro p {
  font-size: var(--type-intro);
  line-height: var(--space-flow-loose);
  margin: 0 0 var(--flow-space);
  text-wrap: balance;
}

.intro p:last-child {
  margin-top: var(--space-section-tight);
  font-size: var(--type-body)
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.intro-links a {
  background: var(--color-rule);
  color: var(--color-dark);
  display: inline-block;
  padding: var(--space-md) var(--space-xl) var(--space-xs);
  text-decoration: none;
  border-radius: 0.35rem;
}

.intro-links a:hover {
  color: var(--color-link);
  text-decoration: none;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:focus-visible {
  outline: 0.15em solid currentColor;
  outline-offset: 0.15em;
  text-decoration: underline;
}

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

.post-list {
  max-width: var(--measure);
}

.area-sub > .post-list {
  margin-top: var(--space-5xl);
}

.post-list h2,
.topic-list h2 {
  margin: 0 0 var(--space-heading);
}

.post-list ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  border-top: var(--rule-border);
}

.post-list a {
  color: var(--color-dark);
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--flow-space-tight) 0;
  text-decoration: none;
}

.post-list-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.post-list-thumb {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 3.5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  margin-top: 0.1rem;
}

.post-list--compact .post-list-thumb {
  margin-top: 0;
}

.post-list h2 a,
.topic-list h2 a {
  padding: 0;  
  color: inherit;
}

.topic-list h2 a:hover {
  color: var(--color-link);
  text-decoration: none;
}

.topic-list {
  margin-top: var(--space-5xl);
  max-width: var(--measure);
}

.topic-list-links {
  border-top: var(--rule-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: 0;
  padding-top: var(--flow-space-tight);
}

.topic-list-links a {
  background: var(--color-rule);
  color: var(--color-dark);
  display: inline-block;
  padding: var(--space-md) var(--space-xl) var(--space-xs);
  text-decoration: none;
  border-radius: 0.35rem;
}

.topic-list-links a:hover {
  color: var(--color-link);
  text-decoration: none;
}

.post-list a strong {
  color: var(--color-link);
  text-decoration: none;
}

.post-list a:hover {
  color: var(--color-link);
}

.post-list a:hover strong {
  text-decoration: underline;
}

.post-list--compact {
  max-width: var(--content-width);
}

.post-list--compact a {
  align-items: flex-start;
  flex-direction: column;
}

.post-list--compact .post-list-date::before {
  content: "–";
  padding: 0 var(--space-xs) 0 var(--space-2xs);
}

.post-list--compact .post-list-excerpt {
  display: block;
}

.post-header-image {
  width: min(100%, var(--profile-image-size));
  max-width: 14rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: var(--space-2xl);
}

.post-list--compact ol {
  margin-bottom: var(--space-xl);
}

.post-list--archive {
  margin-bottom: var(--section-space);
}

.post-list--archive li {
  padding: var(--space-lg) 0;
  border-top: none;
}

.post-list--archive .post-list-title {
  font-size: 1.5em;
}

.post-list--archive .post-list-date {
  display: block;
}

.posttext .tag-list {
  list-style: none;
  margin: 0 0 var(--space-5xl);
  max-width: var(--measure);
  padding: 0;
}

.tag-list li {
  padding: var(--space-xl) 0;
}

.tag-list a {
  color: var(--color-dark);
  display: block;
  text-decoration: none;
}

.tag-list strong {
  color: var(--color-link);
  display: block;
  font-size: 1.5em;
  line-height: 1.25;
}

.tag-list span {
  display: block;
  margin-top: var(--space-sm);
}

.tag-list a:hover {
  color: var(--color-link);
}

.tag-list a:hover strong {
  text-decoration: underline;
}

.posttext .split-list {
  max-width: var(--measure);
}

.signoff {
  border-top: var(--rule-border);
  display: flow-root;
  margin-top: var(--space-section);
}

.signoff img {
  border-radius: 50%;
  display: block;
  float: left;
  object-fit: cover;
  margin-right: var(--flow-space);
  margin-top: var(--flow-space-tight);
  width: 5em;
  height: 5em;
}

.wrapper-main .signoff {
  border-top: none;
}

.wrapper-main .signoff p {
  border-top: var(--rule-border);
  max-width: 100%;
  padding: var(--flow-space-tight) 0;
}

.wrapper-writing .signoff {
  padding-top: var(--flow-space);
}

.wrapper-writing .signoff p {
  margin-top: var(--space-lg);
}

.recommended-posts {
  margin-top: var(--space-section);
}

.recommended-posts .post-list h2 {
  margin: 0 0 var(--space-heading);
}

.recommended-posts .post-list ol {
  margin: 0;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.signoff-social-link svg {
  height: 1.3em;
  transform: translateY(0.2em);
  width: 1.3em;
  margin-right: var(--space-xs);
}

.pagination {
  border-top: var(--rule-border);
  margin-top: var(--section-space);
  padding: var(--space-2xl) 0;
}

.pagination__inner {
  align-items: center;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr auto 1fr;
}

.pagination__numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--section-space);
  justify-content: center;
  grid-column: 2;
  margin: 0;
}

.pagination__page,
.pagination__old,
.pagination__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pagination__page--current {
  font-weight: 700;
}

.pagination__gap {
  opacity: 0.6;
  padding: 0 var(--space-2xs);
}

.pagination__new {
  grid-column: 1;
  justify-self: start;
}

.pagination__old {
  grid-column: 3;
  justify-self: end;
}

@media screen and (max-width: 37em) {
  .pagination__inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .pagination__new,
  .pagination__numbers,
  .pagination__old {
    grid-column: 1;
    justify-self: center;
  }
}

.docfoot {
  font-family: var(--font-sans);
  font-size: 0.8em;
  opacity: 0.7;
}

.docfoot svg {
  display: inline-block;
  height: 1.25em;
  margin-bottom: -0.25em;
  width: auto;
}

.docfoot svg path {
  fill: var(--color-dark);
}

@media screen and (min-width: 30em) {
  .wrapper-main .inner,
  .wrapper-writing .inner {
    margin: var(--space-5xl) auto;
  }

  nav {
    margin: var(--flow-space) auto var(--space-5xl);
  }

  .post-list--compact a {
    align-items: flex-start;
    flex-direction: row;
  }

  .posttext .split-list {
    display: grid;
    column-gap: var(--space-4xl);
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
  }
}

.intro p:first-of-type {
  font-size: clamp(1.25em, 0.39em + 2.16vw, 2.35em);
}

@media screen and (min-width: 40em) {
  .intro p:first-of-type {
    line-height: 1.28;
  }
}

@media screen and (min-width: 50em) {
  .inner {
    margin: var(--space-7xl) auto;
  }

  .area-sub,
  .area-text {
    width: 70%;
  }

  .area-main {
    flex-direction: row;
    gap: 0;
  }

  .area-image {
    width: 30%;
    align-self: flex-start;
  }

  .profile-stamp {
    margin: 0;
    max-width: 100%;
    width: min(var(--profile-stamp-size), 100%);
  }

  .profile-stamp img {
    aspect-ratio: 1;
    height: auto;
    width: calc(100% - var(--profile-stamp-gap));
  }

  .wrapper-main .area-main {
    flex-direction: column-reverse;
    gap: var(--flow-space);
  }

  .wrapper-main .area-sub,
  .wrapper-main .area-text,
  .wrapper-main .area-image {
    width: 100%;
  }

  .wrapper-main .area-image {
    align-self: auto;
    margin-bottom: var(--space-2xl);
  }

  .wrapper-main .profile-stamp {
    margin: 0;
    width: var(--profile-stamp-size);
    max-width: 100%;
  }

  .wrapper-main .profile-stamp img {
    height: var(--profile-image-size);
    width: var(--profile-image-size);
  }
}

@media screen and (min-width: 75em) {
  body {
    font-size: 1.2em;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-rule: var(--color-dark);
    --page-background-color: #161312;
    --page-background: linear-gradient(135deg,
      #161312,
      #211917,
      #2a1e1b
    );
    --page-background-blend-mode: normal;
  }

  body {
    background: var(--page-background);
    color: var(--color-light);
  }

  .date {
    color: rgba(217, 215, 199, 0.6);
  }

  .posttext li::marker {
    color: rgba(217, 215, 199, 0.6);
  }

  .profile-stamp-text {
    color: var(--color-light);
  }

  .skip-link {
    background: var(--color-light);
    color: var(--color-dark);
  }

  a,
  a:hover {
    color: var(--color-link-light);
  }
  
  .intro-links a {
    color: var(--color-light);
  }
  
  .intro-links a:hover {
    color: var(--color-link-light);
  }
  
  .posttext p img {
    background-color: var(--color-light);
  }

  .post-list a {
    color: var(--color-light);
  }
  
  .post-header-image {
    background-color: var(--color-light);    
  }

  .post-meta-tag {
    color: var(--color-link-light);
  }

  .post-list a strong,
  .post-list a:hover {
    color: var(--color-link-light);
  }
  
  .post-list-thumb {
    background-color: var(--color-light);
  }
  
  .topic-list h2 a:hover {
    color: var(--color-link-light);
  }

  .tag-list a {
    color: var(--color-light);
  }

  .tag-list strong {
    color: var(--color-link-light);
  }

  .tag-list a:hover {
    color: var(--color-link-light);
  }
  
  .topic-list-links a {
    background: var(--color-rule);
    color: var(--color-light);
  }
  
  .topic-list-links a:hover {
    color: var(--color-link-light);
  }

  .profile-stamp-copy {
    fill: color-mix(in srgb, var(--page-background-color) 35%, var(--color-light) 65%);
  }

  .docfoot svg path {
    fill: var(--color-light);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body {
    animation: none;
    background-position: var(--page-background-rest-position);
  }
}

