/* =========================================================
   KANJI BLOG — CLEAN MASTER STYLESHEET
   One coherent stylesheet: paper texture, editorial layout,
   Author Studio, threaded comments, and image editing.
========================================================= */

/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
  /* Warm oak / aged-paper palette. */
  --bg: #d7c9b3;
  --surface: #e7dcc9;
  --surface-strong: #eee4d2;
  --surface-soft: #ddd0ba;

  --text: #211a14;
  --muted: #75695b;
  --muted-dark: #584c40;

  --line: #c1b198;
  --line-strong: #a28e73;

  --hover: #dfd3bf;
  --danger: #a33;

  --love: #e25563;
  --love-active: #d9364f;

  --radius: 12px;
  --max: 1320px;

  /* Fine print-paper grain. */
  --paper-texture:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.075'/%3E%3C/svg%3E");
}

/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    var(--paper-texture),
    radial-gradient(120% 85% at 50% 0%, rgba(255, 247, 231, .16), transparent 58%),
    repeating-linear-gradient(101deg,
      rgba(92, 67, 42, .014) 0,
      rgba(92, 67, 42, .014) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(4deg,
      rgba(92, 67, 42, .010) 0,
      rgba(92, 67, 42, .010) 1px,
      transparent 1px,
      transparent 27px
    ),
    linear-gradient(180deg, #dbcdb8 0%, #d0c0a8 100%);
  background-size: 220px 220px, auto, auto, auto, auto;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw 0 max(56px, 15vw);
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--text);
  background:
    var(--paper-texture),
    repeating-linear-gradient(101deg,
      rgba(92, 67, 42, .012) 0,
      rgba(92, 67, 42, .012) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(180deg, rgba(226, 214, 194, .96), rgba(210, 194, 169, .96));
  background-size: 220px 220px, auto, auto;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #171717;
}

.brand > span:not(.brand-dot) {
  font-size: inherit;
  color: var(--love);
}

.brand-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  position: relative;
  border-radius: 50%;
  background: var(--love);
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
  animation: kanjiHeartbeat 1.6s ease-in-out infinite !important;
}

.brand-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--love);
  opacity: 0;
  transform: scale(.9);
  will-change: transform, opacity;
  animation: kanjiPulse 1.6s ease-out infinite !important;
}

@keyframes kanjiHeartbeat {
  0%, 45%, 100% { transform: scale(1); }
  8% { transform: scale(1.5); }
  15% { transform: scale(1); }
  23% { transform: scale(1.32); }
  30% { transform: scale(1); }
}

@keyframes kanjiPulse {
  0%, 42%, 100% { transform: scale(.9); opacity: 0; }
  8% { transform: scale(1.15); opacity: .32; }
  28% { transform: scale(2.5); opacity: 0; }
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #77736d;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover {
  color: #171717;
  background: rgba(235, 225, 211, 0.9);
}

nav a.active {
  color: #111;
  background: rgba(239, 230, 216, 0.96);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #77736d;
}

.section-label {
  margin: 0 0 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #88837b;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.lead {
  color: #66615b;
  font-size: 1.25rem;
  margin-bottom: 45px;
}

/* =========================================================
   CLASSY RESUME SECTION HEADINGS
========================================================= */

.resume-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d4d8dd;
}

.resume-section-heading .section-label {
  margin: 0;

  font-size: 2rem;
  line-height: 1;
  font-weight: 1200;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #202124;
}

.resume-section-heading .resume-index {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #8a8f95;
}


/* More editorial / elegant feel for the section titles */

.resume-section-heading .section-label::after {
  content: "";
  display: block;

  width: 34px;
  height: 1px;

  margin-top: 10px;

  background: #e15563;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

  .resume-section-heading {
    margin-bottom: 30px;
  }

  .resume-section-heading .section-label {
    font-size: 0.92rem;
    letter-spacing: 0.13em;
  }

  .resume-section-heading .resume-index {
    font-size: 0.68rem;
  }

}

/* =========================================================
   BLOG LAYOUT
========================================================= */

.layout {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 70px;
  padding: 70px 5vw 90px;
}

.content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 110px;
  height: max-content;
}

.side-title {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-navigation {
  display: grid;
  gap: 3px;
}

.category {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #77736d;
  cursor: pointer;
  font-size: 0.94rem;
  text-align: left;
  transition: color 150ms ease, background 150ms ease;
}

.category:hover {
  color: #171717;
  background: rgba(242, 232, 218, .66);
}

.category.active {
  color: #111;
  background:
    var(--paper-texture),
    #ede4d4;
  background-size: 180px 180px;
  box-shadow: 0 0 0 1px var(--line);
}

.category span {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-left: 8px;
  border-radius: 50%;
  background: transparent;
}

.category.active span {
  background: #111;
  transform: scale(1.15);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  padding: 5px 0 55px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: 2%;
  top: 5px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0,0,0,.045) 0,
    rgba(0,0,0,0) 70%
  );
  pointer-events: none;
}

.hero h1 {
  max-width: 1000px;
  margin: 0 0 28px;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  line-height: .88;
  letter-spacing: -.075em;
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #393733;
}

.hero-copy {
  max-width: 600px;
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* =========================================================
   SEARCH / TOOLBAR
========================================================= */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 34px;
}

.search {
  width: min(430px, 100%);
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    var(--paper-texture),
    rgba(233, 223, 208, .96);
  background-size: 180px 180px, 100% 100%;
  box-shadow: 0 1px 0 rgba(255, 248, 235, .32);
}

.search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(0,0,0,.035);
}

.search span {
  font-size: 1.15rem;
  color: #85817a;
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171717;
  font-size: .92rem;
}

.search input::placeholder {
  color: #9a968f;
}

#result-count {
  white-space: nowrap;
}

/* =========================================================
   BLOG CARDS
========================================================= */

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.post-card {
  position: relative;
  overflow: hidden;
  background:
    var(--paper-texture),
    repeating-linear-gradient(
      90deg,
      rgba(91, 68, 44, 0.018) 0,
      rgba(91, 68, 44, 0.018) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(
      180deg,
      rgba(234, 223, 207, .92),
      rgba(216, 201, 179, .94)
    );
  background-size: 180px 180px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(50,45,35,.025);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(50,45,35,.05);
}

.post-main {
  display: block;
  padding: 0 24px 24px;
}

.post-image {
  height: 230px;
  margin: 0 -24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #cfc2ad;
  color: #77736d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.02),
    rgba(65,45,28,.09)
  );
  pointer-events: none;
}

.post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-image span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 247, 235, .5);
  border-radius: 999px;
  background: rgba(242, 232, 218, .66);
  color: #65615b;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #88837b;
  font-size: .68rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.post-meta span:first-child {
  color: #242320;
  font-weight: 700;
}

.post-card h2 {
  margin: 13px 0 11px;
  max-width: 95%;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.post-card p {
  margin: 0;
  color: #6f6b64;
  font-size: .94rem;
  line-height: 1.7;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid #d5d0c6;
  background:
    var(--paper-texture),
    rgba(218, 205, 187, .94);
  background-size: 180px 180px, 100% 100%;
  font-size: .83rem;
}

.card-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #242320;
  font-weight: 600;
}

.card-footer > a:hover {
  gap: 8px;
}

.mini-like,
.like-btn,
.ghost-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mini-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 7px;
  color: #77736d;
}

.mini-like:hover,
#like-btn:hover {
  background: rgba(225,85,99,.06);
}

.mini-like:hover {
  color: #171717;
}

.mini-like-icon {
  color: var(--love);
  font-size: 1rem;
  line-height: 1;
}

.mini-like.liked {
  color: var(--love-active);
  font-weight: 600;
}

.mini-like.liked .mini-like-icon {
  color: var(--love-active);
}

.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    var(--paper-texture),
    rgba(247,244,236,.76);
  background-size: 180px 180px, 100% 100%;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   FOOTER
========================================================= */

/* =========================================================
   FOOTER — KANJI
========================================================= */

.footer {
  width: min(
    1280px,
    calc(100% - 48px)
  );

  margin: 80px auto 0;

  padding: 32px 0 42px;

  border-top: 1px solid var(--line);

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 40px;

  color: #777;

  font-size: 0.78rem;

  line-height: 1.5;
}


.footer-left {
  display: flex;
  align-items: center;
}


.footer-right {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 12px;

  text-align: right;
}


.footer-credit {
  color: #747474;
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.footer-socials {
  display: flex;

  align-items: center;

  gap: 16px;
}


.footer-social {
  width: 30px;
  height: 30px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: #5f6368;

  text-decoration: none;

  border: 1px solid var(--line);

  border-radius: 50%;

  background: transparent;

  transition:
    color 180ms ease,
    border-color 180ms ease;
}


.footer-social svg {
  width: 14px;
  height: 14px;

  display: block;

  fill: currentColor;
}


.footer-social:hover {
  color: #202124;

  border-color: #bfc2c7;
}


.footer-social:focus-visible {
  outline: 2px solid #9aa0a6;

  outline-offset: 3px;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

@media (max-width: 700px) {

  .footer {
    width:
      calc(100% - 36px);

    margin-top: 60px;

    padding:
      28px 0 34px;

    flex-direction: column;

    align-items: flex-start;

    gap: 22px;
  }


  .footer-right {
    width: 100%;

    align-items: flex-start;

    text-align: left;
  }


  .footer-socials {
    gap: 14px;
  }

}
/* =========================================================
   NORMAL PAGES
========================================================= */

.page,
.article-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 90px 5vw;
}

.page.narrow {
  max-width: 780px;
}

.page h1 {
  margin: 0 0 28px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.prose {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.85;
}

.prose h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.5rem;
  margin-top: 50px;
}

.text-link {
  text-decoration: underline;
}

.back {
  color: #66615b;
  font-size: .85rem;
}

/* =========================================================
   ARTICLE PAGE
========================================================= */

.article-wrap {
  max-width: 1180px;
  min-width: 0;
}

.article-wrap .back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #77736d;
}

.article-wrap .back:hover {
  color: #171717;
  background: rgba(0,0,0,.04);
}

.article-wrap article > .post-meta {
  margin-bottom: 18px;
}

.article-wrap article > h1 {
  max-width: 1100px;
  margin: 18px 0 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-excerpt {
  max-width: 900px;
  margin: 18px 0 42px;
  color: #625e58;
  font-size: 1.22rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-cover {
  width: 100%;
  max-width: 1120px;
  max-height: 580px;
  display: block;
  margin: 42px 0;
  object-fit: cover;
  border: 1px solid #c7c2b7;
  border-radius: 14px;
}

/* =========================================================
   PUBLISHED ARTICLE BODY
========================================================= */

.article-body {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 52px auto 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.9;
  color: #242424;
}

.article-body p,
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-body blockquote {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.article-body p {
  margin: 0 0 1.45em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #171717;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.article-body h2 {
  margin: 2.5em 0 .8em;
  font-size: 2rem;
}

.article-body h3 {
  margin: 2em 0 .7em;
  font-size: 1.5rem;
}

.article-body h4 {
  margin: 1.7em 0 .6em;
  font-size: 1.2rem;
}

.article-body a {
  color: #171717;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: #555;
}

.article-body strong,
.article-body b {
  color: #171717;
  font-weight: 700;
}

.article-body em,
.article-body i {
  font-style: italic;
}

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

.article-body li {
  margin-bottom: .45em;
}

.article-body blockquote {
  margin: 2em 0;
  padding: 14px 24px;
  border-left: 3px solid #171717;
  border-radius: 0 10px 10px 0;
  background:
    var(--paper-texture),
    rgba(241,238,230,.72);
  background-size: 180px 180px, 100% 100%;
  color: #66615b;
  font-size: 1.08em;
  line-height: 1.8;
  font-style: italic;
}

.article-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eeebe4;
  color: #222;
  font-family: "Courier New", monospace;
  font-size: .9em;
}

.article-body pre {
  max-width: 100%;
  margin: 2em 0;
  padding: 22px;
  border-radius: 10px;
  background: #181818;
  color: #f4f4f4;
  font-family: "Courier New", monospace;
  font-size: .9rem;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-body hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.article-body iframe,
.article-body video,
.article-body embed,
.article-body object {
  max-width: 100%;
}

/* =========================================================
   PUBLISHED IMAGE MODEL
   Wrapper owns width + float.
   Image always fills wrapper.
========================================================= */

.article-body img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.article-body .editor-image-block {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 2.2em;
  margin-bottom: 2.2em;
  padding: 0;
  line-height: 0;
}

.article-body .editor-image-block .editor-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.article-body .editor-image-block.image-left {
  float: left;
  margin-right: 30px;
  margin-left: 0;
}

.article-body .editor-image-block.image-right {
  float: right;
  margin-left: 30px;
  margin-right: 0;
}

.article-body .editor-image-block.image-center {
  float: none;
  clear: both;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.article-body::after {
  content: "";
  display: block;
  clear: both;
}

/* Legacy saved images. */
.article-body img.editor-image.image-left {
  float: left;
  width: 75%;
  max-width: 75%;
  margin: 8px 30px 18px 0;
}

.article-body img.editor-image.image-right {
  float: right;
  width: 75%;
  max-width: 75%;
  margin: 8px 0 18px 30px;
}

.article-body img.editor-image.image-center {
  float: none;
  display: block;
  max-width: 100%;
  margin: 30px auto;
}

/* =========================================================
   EQUATIONS
========================================================= */

.inline-equation {
  display: inline;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
  padding: 2px 4px;
  border-radius: 4px;
}

/* =========================================================
   ENGAGEMENT / COMMENTS
========================================================= */

.engagement {
  max-width: 900px;
  margin: 58px auto 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.like-btn,
.engagement .ghost-btn {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    var(--paper-texture),
    rgba(242,237,228,.94);
  background-size: 180px 180px, 100% 100%;
}

#like-btn {
  color: #171717;
}

#like-btn::first-letter {
  color: var(--love);
}

#like-btn:hover::first-letter,
#like-btn.liked::first-letter {
  color: var(--love-active);
}

.like-btn:hover,
.engagement .ghost-btn:hover {
  background-color: #f3efe6;
  border-color: var(--line-strong);
}

.comments {
  max-width: 900px;
  margin: 62px auto 0;
}

.comments h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 25px;
  font-size: 1.8rem;
  letter-spacing: -.035em;
}

.comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    var(--paper-texture),
    #ebe6db;
  background-size: 180px 180px, 100% 100%;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.comments-list {
  display: block;
}

.comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.comment-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.comment-author {
  font-size: .94rem;
  font-weight: 750;
}

.comment-author-mark {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(225,85,99,.28);
  border-radius: 999px;
  background: rgba(225,85,99,.06);
  color: var(--love-active);
  font-size: .68rem;
  font-weight: 700;
}

.comment-date {
  color: #96918a;
  font-size: .76rem;
}

.comment-body {
  margin: 8px 0 10px;
  color: #494640;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.comment-like-button,
.comment-reply-button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #77736d;
  cursor: pointer;
  font-size: .78rem;
}

.comment-like-button:hover,
.comment-reply-button:hover {
  color: #171717;
}

.comment-like-icon {
  margin-right: 4px;
  color: var(--love);
}

.comment-like-button.liked {
  color: var(--love-active);
  font-weight: 650;
}

.comment-like-button.liked .comment-like-icon {
  color: var(--love-active);
}

.comment-children {
  margin-left: 36px;
  padding-left: 20px;
  border-left: 1px solid #d8d3c9;
}

.comment-depth-2 .comment-children {
  margin-left: 24px;
}

.comment-depth-3 .comment-children {
  margin-left: 18px;
}

.reply-form {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    var(--paper-texture),
    #ebe6db;
  background-size: 180px 180px, 100% 100%;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
}

.reply-form-actions,
.comment-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cancel-reply {
  border: 0;
  background: transparent;
  color: #77736d;
  cursor: pointer;
  font-size: .82rem;
}

.cancel-reply:hover {
  color: #171717;
}

.comment-form-title {
  margin: 0;
  font-weight: 700;
}

.comment-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

/* =========================================================
   FORMS
========================================================= */

.author-card input,
.author-card textarea,
.editor-field input,
.editor-field textarea,
.editor-field select,
.comments input,
.comments textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background:
    var(--paper-texture),
    rgba(239,234,225,.96);
  background-size: 180px 180px, 100% 100%;
  color: var(--text);
}

.author-card input:focus,
.author-card textarea:focus,
.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus,
.comments input:focus,
.comments textarea:focus {
  border-color: #aaa59d;
  box-shadow: 0 0 0 4px rgba(0,0,0,.035);
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-field {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.editor-field > span {
  font-size: .8rem;
  font-weight: 700;
  color: #55514b;
}

/* =========================================================
   BUTTONS
========================================================= */

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: #171717;
  color: #fff;
  cursor: pointer;
}

.primary:hover {
  background: #262626;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    var(--paper-texture),
    rgba(250,248,242,.82);
  background-size: 180px 180px, 100% 100%;
  cursor: pointer;
}

.ghost-btn:hover {
  background-color: var(--hover);
  border-color: var(--line-strong);
}

.hidden {
  display: none !important;
}

.error-message {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-size: .85rem;
}

/* =========================================================
   AUTHOR STUDIO
========================================================= */

.author-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 5vw;
}

.author-card {
  max-width: 520px;
  margin: 60px auto;
  padding: 45px;
  background:
    var(--paper-texture),
    var(--surface-strong);
  background-size: 180px 180px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.author-card h1 {
  margin: 0 0 15px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.author-intro {
  margin-bottom: 35px;
  color: var(--muted);
}

.studio {
  width: 100%;
}

.studio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

.studio-header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.studio-panel {
  margin-bottom: 28px;
  padding: 30px;
  background:
    var(--paper-texture),
    #f1ede3;
  background-size: 180px 180px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.panel-heading {
  margin-bottom: 25px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.category-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 25px;
}

.category-list {
  display: grid;
  gap: 0;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.category-row:last-child {
  border-bottom: 0;
}

.category-delete {
  border: 0;
  background: transparent;
  color: #88837b;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
}

.category-delete:hover {
  color: #111;
}

/* =========================================================
   COVER IMAGE
========================================================= */

.cover-image-section {
  margin: 25px 0 30px;
  padding: 20px;
  background:
    var(--paper-texture),
    #ebe6db;
  background-size: 180px 180px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cover-header h3 {
  margin: 0;
  font-size: 1rem;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--paper-texture),
    #f3efe6;
  background-size: 180px 180px, 100% 100%;
  cursor: pointer;
  font-size: .82rem;
}

.upload-button:hover {
  background-color: var(--hover);
}

.cover-preview {
  margin-top: 18px;
  overflow: hidden;
  max-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e4e0d7;
}

.cover-preview img {
  width: 100%;
  max-height: 380px;
  display: block;
  object-fit: cover;
}

.remove-cover {
  margin-top: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f3efe6;
  cursor: pointer;
  font-size: .78rem;
}

.remove-cover:hover {
  color: var(--danger);
}

/* =========================================================
   VISUAL EDITOR
========================================================= */

.article-editor-panel {
  overflow: visible;
}

.visual-editor-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 30px;
  overflow: visible;
  background:
    var(--paper-texture),
    #ebe6db;
  background-size: 180px 180px, 100% 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.editor-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  background:
    var(--paper-texture),
    #ebe7de;
  background-size: 180px 180px, 100% 100%;
  border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  position: sticky;
  top: 76px;
  z-index: 50;
}

.editor-toolbar button,
.editor-toolbar select {
  width: auto !important;
  min-width: 0;
  max-width: 180px;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
}

.editor-toolbar button:hover {
  background: var(--hover);
  border-color: var(--line);
}

.editor-toolbar select {
  min-width: 105px;
  background:
    var(--paper-texture),
    #f3efe6;
  background-size: 180px 180px, 100% 100%;
  border-color: var(--line);
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  flex: 0 0 auto;
  margin: 0 3px;
  background: var(--line);
}

.article-editor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 600px;
  padding: 55px;
  position: relative;
  overflow: visible;
  outline: none;
  background:
    var(--paper-texture),
    repeating-linear-gradient(
      0deg,
      rgba(70,60,45,.008) 0,
      rgba(70,60,45,.008) 1px,
      transparent 1px,
      transparent 5px
    ),
    #f3efe6;
  background-size: 180px 180px, auto, 100% 100%;
  color: #171717;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}

.article-editor:empty::before {
  content: attr(data-placeholder);
  color: #aaa39a;
  pointer-events: none;
}

.article-editor p {
  min-height: 1.5em;
  margin: 0 0 18px;
}

.article-editor h1,
.article-editor h2,
.article-editor h3 {
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.article-editor h1 {
  font-size: 2.7rem;
}

.article-editor h2 {
  font-size: 2rem;
}

.article-editor h3 {
  font-size: 1.45rem;
}

.article-editor blockquote {
  margin: 30px 0;
  padding: 10px 25px;
  border-left: 4px solid #222;
  color: #66615b;
  font-style: italic;
}

.article-editor a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.article-editor .inline-equation {
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
  padding: 2px 4px;
  border-radius: 4px;
}

/* =========================================================
   AUTHOR STUDIO IMAGE MODEL
========================================================= */

.editor-image-block {
  box-sizing: border-box;
  max-width: 100%;
  margin: 30px 0;
  padding: 0;
  line-height: 0;
}

.article-editor .editor-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  box-sizing: border-box;
  object-fit: contain;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  border: 2px solid transparent;
  border-radius: 6px;
}

.article-editor .editor-image.editor-image-selected {
  border-color: #111;
}

/* Alignment controls move the wrapper. */
.editor-image-block.image-left {
  float: left;
  margin: 8px 30px 18px 0;
  text-align: left;
}

.editor-image-block.image-right {
  float: right;
  margin: 8px 0 18px 30px;
  text-align: right;
}

.editor-image-block.image-center {
  float: none;
  clear: both;
  margin: 30px auto;
  text-align: center;
}

.article-editor::after {
  content: "";
  display: block;
  clear: both;
}

/* Code blocks should not sit beside floating images. */
.article-editor pre {
  max-width: 100%;
  clear: both;
  margin: 30px 0;
  padding: 22px;
  border-radius: 10px;
  background: #181818;
  color: #f4f4f4;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "Courier New", monospace;
  font-size: .9rem;
  line-height: 1.6;
}

/* =========================================================
   IMAGE CONTROLS
========================================================= */

.image-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  background:
    var(--paper-texture),
    #ece8df;
  background-size: 180px 180px, 100% 100%;
  border-top: 1px solid var(--line);
}

.image-control-label {
  margin-right: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.image-controls button {
  width: auto !important;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    var(--paper-texture),
    #f3efe6;
  background-size: 180px 180px, 100% 100%;
  cursor: pointer;
  font-size: .78rem;
}

.image-controls button:hover {
  background-color: var(--hover);
}

.danger-button {
  margin-left: auto;
}

.danger-button:hover {
  color: var(--danger);
}

/* =========================================================
   COLOR / HIGHLIGHT TOOL
========================================================= */

.color-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.color-tool-button {
  position: relative;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  cursor: pointer;
}

.color-tool-button:hover {
  background: var(--hover) !important;
  border-color: var(--line) !important;
}

.text-color-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.text-color-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--love-active);
}

.highlight-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: #555;
}

.color-palette {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(4, 30px);
  gap: 7px;
  padding: 10px;
  min-width: 148px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3efe6 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.color-palette.hidden {
  display: none !important;
}

.color-palette .color-swatch {
  position: relative;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  border-radius: 7px !important;
  background-color: var(--swatch) !important;
  background-image: none !important;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.color-palette .color-swatch:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #999;
}

.color-palette .color-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #171717 !important;
}

.color-palette .color-swatch.active::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.75);
}

.color-palette .color-remove {
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 7px !important;
  background: #f3efe6 !important;
  color: #777 !important;
  cursor: pointer;
}

.color-palette .color-remove:hover {
  background: var(--hover) !important;
  color: #111 !important;
  transform: scale(1.08);
}

/* =========================================================
   EDITOR ACTIONS / DRAFTS
========================================================= */

.editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.draft:last-child {
  border-bottom: 0;
}

.draft-info {
  display: grid;
  gap: 3px;
}

.draft-info strong {
  font-size: .95rem;
}

.draft-info span {
  color: #88837b;
  font-size: .78rem;
}

.draft-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.delete-draft {
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
}

.delete-draft:hover {
  color: #111;
}

/* =========================================================
   DESKTOP COMPOSITION
========================================================= */

@media (min-width: 1201px) {
  .layout {
    max-width: 1500px;
    grid-template-columns: 210px minmax(0,1fr);
    gap: 82px;
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

@media (min-width: 1600px) {
  .layout {
    max-width: 1600px;
    grid-template-columns: 220px minmax(0,1fr);
    gap: 90px;
  }
}

@media (min-width: 1900px) {
  .layout {
    max-width: 1650px;
    grid-template-columns: 225px minmax(0,1fr);
    gap: 95px;
  }

  .article-wrap {
    max-width: 1300px;
  }

  .article-wrap article > h1 {
    max-width: 1200px;
  }

  .article-cover {
    max-width: 1220px;
  }

  .article-body,
  .engagement,
  .comments {
    max-width: 960px;
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 850px) {
  .site-header {
    height: auto;
    padding: 18px 5vw;
    align-items: flex-start;
    gap: 15px;
  }

  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .layout {
    display: block;
    padding: 45px 5vw 70px;
  }

  .sidebar {
    position: static;
    margin-bottom: 35px;
  }

  .category-navigation {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .category {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

  .post-image {
    height: 210px;
  }

  .article-editor {
    min-height: 500px;
    padding: 30px 22px;
  }

  .editor-toolbar {
    position: static;
  }

  .image-control-label {
    width: 100%;
  }

  .danger-button {
    margin-left: 0;
  }

  .comment-children {
    margin-left: 20px;
    padding-left: 15px;
  }
}

@media (max-width: 700px) {
  .page,
  .article-wrap {
    padding: 70px 5vw;
  }

  .hero h1,
  .page h1 {
    font-size: clamp(3.4rem, 12vw, 5rem);
  }

  .article-wrap article > h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .article-excerpt {
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .article-body {
    font-size: 1.05rem;
    line-height: 1.82;
  }

  .article-body h2 {
    font-size: 1.7rem;
  }

  .article-body h3 {
    font-size: 1.35rem;
  }

  .author-container {
    padding-top: 45px;
  }

  .author-card,
  .studio-panel {
    padding: 28px;
  }

  .studio-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-create {
    grid-template-columns: 1fr;
  }

  .cover-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-button {
    width: 100%;
  }

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

  .draft-actions {
    width: 100%;
  }

  .draft-actions button {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px 5vw;
  }

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

  .editor-toolbar {
    gap: 3px;
    padding: 8px;
  }

  .editor-toolbar button,
  .editor-toolbar select {
    height: 32px;
    padding: 0 7px;
    font-size: .75rem;
  }

  .article-editor {
    min-height: 450px;
    padding: 25px 17px;
    font-size: 17px;
  }

  .article-editor h1 {
    font-size: 2.1rem;
  }

  .article-editor h2 {
    font-size: 1.7rem;
  }

  .article-editor h3 {
    font-size: 1.3rem;
  }

  .editor-image-block.image-left,
  .editor-image-block.image-right {
    float: none;
    width: 100% !important;
    max-width: 100% !important;
    margin: 25px 0;
  }

  .article-body .editor-image-block.image-left,
  .article-body .editor-image-block.image-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
  }

  .comment-children {
    margin-left: 10px;
    padding-left: 10px;
  }

  .reply-form-actions,
  .comment-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .color-palette {
    grid-template-columns: repeat(4, 27px);
    min-width: 136px;
    gap: 6px;
    padding: 8px;
  }

  .color-palette .color-swatch,
  .color-palette .color-remove {
    width: 27px !important;
    min-width: 27px !important;
    max-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }
}

/* =========================================================
   FINAL VISUAL PASS — GLASS NAV + WARM 3D PAPER SURFACES
   Appended overrides keep the existing structure intact.
========================================================= */

:root {
  --bg: #d4c5ad;
  --surface: #e1d5c0;
  --surface-strong: #e9dfcd;
  --surface-soft: #d8cbb6;
  --text: #201812;
  --muted: #706454;
  --muted-dark: #51483d;
  --line: #bdae95;
  --line-strong: #9f8d72;
  --hover: #d8cbb6;
}

body {
  background:
    var(--paper-texture),
    radial-gradient(95% 120% at 50% 0%, rgba(255, 245, 225, .12), transparent 62%),
    repeating-linear-gradient(
      90deg,
      rgba(91, 62, 33, .018) 0,
      rgba(91, 62, 33, .018) 1px,
      transparent 1px,
      transparent 18px
    ),
    repeating-linear-gradient(
      7deg,
      rgba(91, 62, 33, .010) 0,
      rgba(91, 62, 33, .010) 1px,
      transparent 1px,
      transparent 32px
    ),
    linear-gradient(135deg, #d9ccb7 0%, #d0c0a8 48%, #d7c9b2 100%);
  background-size: 220px 220px, auto, auto, auto, auto;
}

/* Google-Store-inspired floating glass navbar: translucent, blurred,
   lightly bordered, and deliberately free of a painted gradient. */
.site-header {
  width: calc(100% - 48px);
  height: 64px;
  margin: 14px 24px 0;
  padding: 0 20px 0 42px;
  border: 1px solid rgba(255, 247, 232, .46);
  border-radius: 999px;
  background: rgba(237, 228, 212, .54);
  box-shadow:
    0 10px 28px rgba(66, 46, 27, .10),
    0 2px 6px rgba(66, 46, 27, .07),
    inset 0 1px 0 rgba(255, 250, 239, .42),
    inset 0 -1px 0 rgba(112, 83, 53, .08);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  position: sticky;
  top: 14px;
}

.brand {
  margin-left: 20px;
  position: relative;
  z-index: 1;
}

nav a {
  color: #645b50;
}

nav a:hover {
  color: #201812;
  background: rgba(255, 248, 235, .30);
}

nav a.active {
  color: #17120e;
  background: rgba(255, 248, 235, .54);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 1px 2px rgba(66,46,27,.05);
}

/* Cards read as individual raised paper objects instead of blending into
   the page. */
.post-card {
  background:
    var(--paper-texture),
    #e0d3bf;
  background-size: 180px 180px, 100% 100%;
  border-color: #b8a88d;
  box-shadow:
    0 8px 18px rgba(66, 46, 27, .075),
    0 2px 5px rgba(66, 46, 27, .055),
    inset 0 1px 0 rgba(255, 248, 235, .30);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: #a49276;
  box-shadow:
    0 16px 30px rgba(66, 46, 27, .11),
    0 4px 9px rgba(66, 46, 27, .07),
    inset 0 1px 0 rgba(255, 248, 235, .32);
}

.post-image {
  background:
    var(--paper-texture),
    #c9baa2;
  background-size: 180px 180px, 100% 100%;
  box-shadow: inset 0 -1px 0 rgba(65, 45, 28, .08);
}

.post-image span {
  border-color: rgba(255, 247, 235, .52);
  background: rgba(241, 231, 214, .68);
  color: #5f5549;
  box-shadow:
    0 2px 5px rgba(66, 46, 27, .06),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.post-card .post-main {
  background: transparent;
}

.card-footer {
  border-top-color: rgba(155, 137, 111, .48);
  background:
    var(--paper-texture),
    #d6c8b3;
  background-size: 180px 180px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 247, 230, .20);
}

/* Search and every form field stay in the same warm material language. */
.search,
.author-card input,
.author-card textarea,
.editor-field input,
.editor-field textarea,
.editor-field select,
.comments input,
.comments textarea,
.reply-form input,
.reply-form textarea,
.editor-toolbar select,
.upload-button,
.remove-cover,
.ghost-btn {
  background:
    var(--paper-texture),
    #ded1bc;
  background-size: 180px 180px, 100% 100%;
  border-color: #bcae96;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 232, .28),
    inset 0 -1px 2px rgba(92, 65, 39, .035),
    0 2px 5px rgba(66, 46, 27, .035);
}

.search:focus-within,
.author-card input:focus,
.author-card textarea:focus,
.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus,
.comments input:focus,
.comments textarea:focus,
.reply-form input:focus,
.reply-form textarea:focus {
  border-color: #9f8d72;
  box-shadow:
    0 0 0 4px rgba(128, 98, 62, .075),
    inset 0 1px 0 rgba(255, 248, 232, .28),
    0 2px 6px rgba(66, 46, 27, .05);
}

.search input,
.author-card input,
.author-card textarea,
.editor-field input,
.editor-field textarea,
.editor-field select,
.comments input,
.comments textarea,
.reply-form input,
.reply-form textarea {
  color: #251d16;
}

.search input::placeholder,
.article-editor:empty::before {
  color: #948777;
}

.category.active {
  background:
    var(--paper-texture),
    #e3d7c4;
  background-size: 180px 180px;
  box-shadow:
    0 2px 6px rgba(66,46,27,.055),
    inset 0 1px 0 rgba(255,248,235,.28),
    0 0 0 1px var(--line);
}

.empty-state {
  background:
    var(--paper-texture),
    #ded1bc;
  background-size: 180px 180px, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,248,235,.20);
}

/* Editorial/editor surfaces — no stark white canvas anywhere. */
.studio-panel,
.cover-image-section,
.visual-editor-wrapper,
.reply-form {
  box-shadow:
    0 5px 14px rgba(66,46,27,.045),
    inset 0 1px 0 rgba(255,248,235,.22);
}

.article-editor {
  background:
    var(--paper-texture),
    repeating-linear-gradient(
      0deg,
      rgba(76, 57, 39, .007) 0,
      rgba(76, 57, 39, .007) 1px,
      transparent 1px,
      transparent 6px
    ),
    #e8ddca;
  background-size: 180px 180px, auto, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255,248,235,.18);
}

.editor-toolbar {
  background:
    var(--paper-texture),
    rgba(221, 209, 190, .88);
  background-size: 180px 180px, 100% 100%;
}

.editor-toolbar select {
  background:
    var(--paper-texture),
    #ded1bc;
  background-size: 180px 180px, 100% 100%;
}

.cover-preview {
  background:
    var(--paper-texture),
    #d4c6b0;
  background-size: 180px 180px, 100% 100%;
}

/* Give large sheets a quiet dimensional edge without looking glossy. */
.article-cover,
.author-card,
.studio-panel,
.visual-editor-wrapper {
  box-shadow:
    0 8px 22px rgba(66, 46, 27, .055),
    0 2px 5px rgba(66, 46, 27, .035),
    inset 0 1px 0 rgba(255,248,235,.22);
}

.primary {
  box-shadow:
    0 4px 9px rgba(35, 25, 17, .15),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Keep the glass header compact on smaller screens while retaining its shape. */
@media (max-width: 850px) {
  .site-header {
    width: calc(100% - 28px);
    margin: 10px 14px 0;
    padding: 12px 16px 12px 22px;
    border-radius: 24px;
    top: 10px;
  }

  .brand {
    margin-left: 4px;
  }
}

/* =========================================================
   GOOGLE-STYLE FLOATING NAVBAR
   Centered on large screens, plain white, subtle shadow,
   crisp border, no texture and no glass effect.
========================================================= */

.site-header {
  width: min(1400px, calc(100% - 40px));
  max-width: 1400px;
  height: 56px;
  margin: 12px auto 0;
  padding: 0 18px 0 22px;
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #202124;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, .14), 0 1px 3px rgba(60, 64, 67, .08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header .brand {
  margin: 0;
  color: #202124;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-header nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #5f6368;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.site-header nav a:hover {
  color: #202124;
  background: #f8f9fa;
  border-color: #e8eaed;
}

.site-header nav a.active {
  color: #202124;
  background: #f1f3f4;
  border-color: #dadce0;
}

/* Slightly stronger structural rules so cards, sections and controls
   remain clearly separated against the warm page background. */
:root {
  --line: #b8aa94;
  --line-strong: #97866f;
}

@media (max-width: 850px) {
  .site-header {
    width: calc(100% - 28px);
    max-width: none;
    height: auto;
    margin: 10px 14px 0;
    padding: 12px 16px 12px 20px;
    top: 10px;
    border-radius: 24px;
  }

  .site-header nav {
    margin-left: auto;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 10px 12px 10px 16px;
  }

  .site-header nav {
    gap: 1px;
  }
}

/* =========================================================
   FINAL VISUAL PASS — CLEAN WHITE / FLAT / GLOSS EDGE
   Sticky compact navbar, restrained cards, clean comments.
========================================================= */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f6f7f8;
  --text: #202124;
  --muted: #6f7378;
  --muted-dark: #4f5358;
  --line: #d5d9de;
  --line-strong: #bfc5cc;
  --hover: #f7f8f9;
}

/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

body {
  background: #fafafa;
  color: var(--text);
}

/* ---------------------------------------------------------
   NAVBAR — sticky, compact, plain white
--------------------------------------------------------- */

.site-header {
  width: min(1280px, calc(100% - 40px));
  max-width: 1280px;
  height: 56px;
  margin: 12px auto 0;
  padding: 0 18px 0 24px;
  position: sticky;
  top: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #202124;
  background: #ffffff;
  border: 1px solid #d7dade;
  border-radius: 30px;
  box-shadow:
    0 2px 7px rgba(32, 33, 36, .08),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(170, 176, 183, .10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  isolation: isolate;
}

/* Full perimeter gloss — visible, but very subtle. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.95) 15%,
    rgba(255,255,255,.95) 85%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header .brand {
  margin: 0;
  color: #202124;
}

.site-header .brand .brand-dot {
  animation: kanjiHeartbeat 1.6s ease-in-out infinite !important;
}

.site-header .brand .brand-dot::after {
  animation: kanjiPulse 1.6s ease-out infinite !important;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-header nav a {
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  color: #5f6368;
  background: transparent;
  box-shadow: none;
  transition: color 150ms ease;
}

/* No hover button / no floating 3D effect. */
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #202124;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.site-header nav a.active {
  color: #202124;
  background: transparent;
  border: 0;
  box-shadow: inset 0 -2px 0 #202124;
  border-radius: 0;
}

/* ---------------------------------------------------------
   CARDS — neutral white, restrained depth
--------------------------------------------------------- */

.post-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(32, 33, 36, .05),
    0 7px 20px rgba(32, 33, 36, .045),
    inset 0 1px 0 rgba(255,255,255,.98);
  transition: none;
  overflow: hidden;
  isolation: isolate;
}

.post-card:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow:
    0 1px 2px rgba(32, 33, 36, .05),
    0 7px 20px rgba(32, 33, 36, .045),
    inset 0 1px 0 rgba(255,255,255,.98);
}

/* Glossy edge around every card. */
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}

.post-card > * {
  position: relative;
  z-index: 1;
}

.post-image {
  background: #eef0f2;
  box-shadow: inset 0 -1px 0 rgba(32,33,36,.07);
}

.post-image::after {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.03),
    rgba(32,33,36,.045)
  );
}

.post-image span {
  border: 1px solid rgba(255,255,255,.92);
  background: rgba(255,255,255,.86);
  color: #5f6368;
  box-shadow: none;
}

.post-card .post-main {
  background: #ffffff;
}

.post-meta {
  color: #777b80;
}

.post-meta span:first-child {
  color: #202124;
}

.post-card p {
  color: #64696e;
}

.card-footer {
  background: #f7f7f8;
  border-top: 1px solid #d9dde2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.card-footer > a,
.mini-like,
.like-btn,
.ghost-btn {
  box-shadow: none;
}

.card-footer > a:hover,
.mini-like:hover,
#like-btn:hover,
.like-btn:hover,
.engagement .ghost-btn:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* ---------------------------------------------------------
   SEARCH / FORMS — white with crisp borders
--------------------------------------------------------- */

.search,
.author-card input,
.author-card textarea,
.editor-field input,
.editor-field textarea,
.editor-field select,
.comments input,
.comments textarea,
.reply-form input,
.reply-form textarea,
.editor-toolbar select,
.upload-button,
.remove-cover,
.ghost-btn {
  background: #ffffff;
  border: 1px solid #d4d8dd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98);
}

.search:focus-within,
.author-card input:focus,
.author-card textarea:focus,
.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus,
.comments input:focus,
.comments textarea:focus,
.reply-form input:focus,
.reply-form textarea:focus {
  border-color: #9aa1a9;
  box-shadow: 0 0 0 3px rgba(32,33,36,.06), inset 0 1px 0 rgba(255,255,255,.98);
}

.search input::placeholder,
.article-editor:empty::before {
  color: #8b9096;
}

.category.active {
  background: #ffffff;
  border-color: #cfd4da;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98);
}

/* ---------------------------------------------------------
   COMMENTS — simple and visually consistent
--------------------------------------------------------- */

.comments {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.comments::before,
.comments::after {
  display: none;
}

.comments > * {
  position: relative;
  z-index: auto;
}

.comments-count {
  background: #f6f7f8;
  border: 1px solid #d4d8dd;
  box-shadow: none;
  color: #666b71;
}

.comment {
  background: transparent;
  border-bottom: 1px solid #d9dde2;
}

.comment-author {
  color: #202124;
}

.comment-author-mark {
  border: 1px solid rgba(225,85,99,.22);
  background: rgba(225,85,99,.055);
  color: var(--love-active);
  box-shadow: none;
}

.comment-date {
  color: #8a8f95;
}

.comment-body {
  color: #4f5459;
}

.comment-like-button,
.comment-reply-button,
.cancel-reply {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.comment-like-button:hover,
.comment-reply-button:hover,
.cancel-reply:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #202124;
}

.comment-children {
  border-left: 1px solid #d4d8dd;
}

.reply-form {
  margin-top: 15px;
  padding: 16px;
  background: #f7f8f9;
  border: 1px solid #d4d8dd;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    0 2px 8px rgba(32,33,36,.035);
}

/* ---------------------------------------------------------
   EDITOR / OTHER SURFACES
--------------------------------------------------------- */

.author-card,
.studio-panel,
.visual-editor-wrapper,
.cover-image-section,
.empty-state,
.article-cover {
  background: #ffffff;
  border-color: #d4d8dd;
  box-shadow:
    0 3px 12px rgba(32,33,36,.04),
    inset 0 1px 0 rgba(255,255,255,.98);
}

.article-editor {
  background: #ffffff;
  border-color: #d4d8dd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98);
}

.editor-toolbar {
  background: #f7f8f9;
  border-color: #d4d8dd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98);
}

.editor-toolbar button:hover,
.upload-button:hover,
.remove-cover:hover,
.ghost-btn:hover,
.category:hover,
.color-swatch:hover,
.color-remove:hover {
  background: transparent;
  border-color: inherit;
  box-shadow: none;
  transform: none;
}

.primary,
.primary:hover {
  box-shadow: none;
  transform: none;
}

.cover-preview {
  background: #f1f3f5;
  border-color: #d4d8dd;
}

/* Gloss edge for major white sheets, without making them glassy. */
.author-card::before,
.studio-panel::before,
.visual-editor-wrapper::before,
.cover-image-section::before,
.empty-state::before,
.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.author-card > *,
.studio-panel > *,
.visual-editor-wrapper > *,
.cover-image-section > *,
.empty-state > *,
.article-cover > * {
  position: relative;
  z-index: 3;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 850px) {
  .site-header {
    width: calc(100% - 28px);
    max-width: none;
    height: 54px;
    margin: 10px 14px 0;
    padding: 0 14px 0 18px;
    top: 10px;
    border-radius: 27px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: auto;
    min-height: 52px;
    padding: 9px 10px 9px 14px;
  }
}

/* =========================================================
   FIXED WRITING FIELDS + NAVBAR POSITION
   Keep writing areas at a stable height. Extra content scrolls
   inside the field instead of changing the page layout.
========================================================= */

textarea,
.author-card textarea,
.editor-field textarea,
.comments textarea,
.reply-form textarea {
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 220px;
}

/* Suggestions / longer message fields */
.editor-form textarea {
  height: 180px;
}

/* Comment and reply fields stay compact and scroll internally. */
.comments textarea,
.reply-form textarea {
  height: 110px;
}

/* Author Studio text fields stay fixed as well. */
.author-card textarea,
.editor-field textarea {
  height: 140px;
}

/* The rich article writing area is also a fixed writing canvas.
   Long articles scroll inside the editor instead of pushing the
   rest of the page downward. */
.article-editor {
  height: 600px;
  min-height: 600px;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

/* Slightly lower floating navbar for more breathing room at the top. */
.site-header {
  margin-top: 18px;
  top: 18px;
}

@media (max-width: 850px) {
  .site-header {
    margin-top: 14px;
    top: 14px;
  }

  .article-editor {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
  }
}

/* =========================================================
   FINAL NAVBAR BEHAVIOUR — GOOGLE-STYLE MORPH

   At the top of the page the header is visually part of the
   page: no border, no shadow, no floating shape.

   After scrolling, only the visual header surface morphs into
   a centered floating pill. The header's actual layout height
   stays constant, so the page never jumps during the animation.
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  max-width: none;
  height: 78px;
  margin: 0;
  padding-inline:
    max(24px, calc((100vw - 1280px) / 2 + 24px));

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  isolation: isolate;
}

/* Visual navbar surface */
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;

  top: 0;
  left: 0;
  width: 100%;
  height: 78px;

  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;

  transform: none;
  pointer-events: none;

  transition:
    width 520ms cubic-bezier(.22, .61, .36, 1),
    height 520ms cubic-bezier(.22, .61, .36, 1),
    top 520ms cubic-bezier(.22, .61, .36, 1),
    left 520ms cubic-bezier(.22, .61, .36, 1),
    transform 520ms cubic-bezier(.22, .61, .36, 1),
    border-radius 520ms cubic-bezier(.22, .61, .36, 1),
    background-color 380ms ease,
    border-color 420ms ease,
    box-shadow 520ms cubic-bezier(.22, .61, .36, 1);
}

/* Glossy inner edge */
.site-header::after {
  content: "";
  position: absolute;
  z-index: 0;

  top: 0;
  left: 0;
  width: 100%;
  height: 78px;

  border: 0 solid transparent;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;

  pointer-events: none;

  transition:
    width 520ms cubic-bezier(.22, .61, .36, 1),
    height 520ms cubic-bezier(.22, .61, .36, 1),
    top 520ms cubic-bezier(.22, .61, .36, 1),
    left 520ms cubic-bezier(.22, .61, .36, 1),
    transform 520ms cubic-bezier(.22, .61, .36, 1),
    border-radius 520ms cubic-bezier(.22, .61, .36, 1),
    opacity 280ms ease;
}

.site-header > * {
  position: relative;
  z-index: 2;
}

.site-header .brand {
  margin: 0;
}

.site-header nav {
  margin-left: auto;
}

/* No 3D / hover button treatment */
.site-header nav a,
.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.site-header nav a {
  color: #5f6368;
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.active {
  color: #202124;
}

.site-header nav a.active {
  box-shadow: inset 0 -2px 0 #202124;
  border-radius: 0;
}

/* ---------------------------------------------------------
   SCROLLED STATE
   The surface becomes the centered Google-like pill.
--------------------------------------------------------- */

.site-header.is-scrolled::before {
  top: 11px;
  left: 50%;
  width: min(1280px, calc(100% - 40px));
  height: 56px;

  transform: translateX(-50%);

  background: #ffffff;
  border-color: #d9dce1;
  border-radius: 30px;

  box-shadow:
    0 3px 10px rgba(32, 33, 36, .075),
    0 1px 2px rgba(32, 33, 36, .055),
    inset 0 1px 0 rgba(255, 255, 255, .98);
}

/* Smooth luminous rim around the floating pill */
.site-header.is-scrolled::after {
  top: 12px;
  left: 50%;
  width: min(1278px, calc(100% - 42px));
  height: 54px;

  transform: translateX(-50%);

  border: 1px solid rgba(255, 255, 255, .90);
  border-radius: 28px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(180, 185, 192, .10);

  opacity: 1;
}

/* Keep the heartbeat alive through the morph */
.site-header .brand-dot,
.site-header .brand-dot::after {
  transform-origin: center;
}

/* ---------------------------------------------------------
   SMALL SCREENS
--------------------------------------------------------- */

@media (max-width: 850px) {
  .site-header {
    height: 66px;
    padding-inline: 18px;
  }

  .site-header::before {
    height: 66px;
  }

  .site-header::after {
    height: 66px;
  }

  .site-header.is-scrolled::before {
    top: 7px;
    width: calc(100% - 24px);
    height: 52px;
    border-radius: 26px;
  }

  .site-header.is-scrolled::after {
    top: 8px;
    width: calc(100% - 26px);
    height: 50px;
    border-radius: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before,
  .site-header::after {
    transition-duration: 1ms;
  }
}

/* =========================================================
   FINAL NAVBAR ENGINE
   One shared visual system for every page.

   TOP:
   - full-width transparent header
   - no border
   - no shadow
   - visually attached to the page

   SCROLLED:
   - centered 1068px white pill on large screens
   - crisp 1px perimeter
   - very soft shadow
   - smooth morph

   Important: the visual layer uses z-index: 0 rather than
   a negative z-index so article content can never paint over it.
========================================================= */

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;

  width: 100% !important;
  max-width: none !important;
  height: 76px !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  padding-left: max(24px, calc((100vw - 1320px) / 2 + 24px)) !important;
  padding-right: max(24px, calc((100vw - 1320px) / 2 + 24px)) !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  overflow: visible !important;
  isolation: isolate !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transition:
    padding-left 560ms cubic-bezier(.16, 1, .3, 1),
    padding-right 560ms cubic-bezier(.16, 1, .3, 1);
}

/* Main surface: this is the only thing that becomes the pill. */
.site-header::before {
  content: "" !important;

  position: absolute !important;
  z-index: 0 !important;

  top: 0 !important;
  left: 0 !important;

  width: 100% !important;
  height: 76px !important;

  background: transparent !important;

  border: 1px solid transparent !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  pointer-events: none !important;

  will-change:
    width,
    height,
    top,
    left,
    transform,
    border-radius,
    background-color,
    border-color,
    box-shadow;

  transition:
    width 560ms cubic-bezier(.16, 1, .3, 1),
    height 560ms cubic-bezier(.16, 1, .3, 1),
    top 560ms cubic-bezier(.16, 1, .3, 1),
    left 560ms cubic-bezier(.16, 1, .3, 1),
    transform 560ms cubic-bezier(.16, 1, .3, 1),
    border-radius 560ms cubic-bezier(.16, 1, .3, 1),
    background-color 360ms ease,
    border-color 420ms ease,
    box-shadow 560ms cubic-bezier(.16, 1, .3, 1);
}

/* Perimeter gloss. Hidden at top, revealed with the pill. */
.site-header::after {
  content: "" !important;

  position: absolute !important;
  z-index: 1 !important;

  top: 0 !important;
  left: 0 !important;

  width: 100% !important;
  height: 76px !important;

  border: 1px solid transparent !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  opacity: 0 !important;

  pointer-events: none !important;

  will-change:
    width,
    height,
    top,
    left,
    transform,
    border-radius,
    opacity;

  transition:
    width 560ms cubic-bezier(.16, 1, .3, 1),
    height 560ms cubic-bezier(.16, 1, .3, 1),
    top 560ms cubic-bezier(.16, 1, .3, 1),
    left 560ms cubic-bezier(.16, 1, .3, 1),
    transform 560ms cubic-bezier(.16, 1, .3, 1),
    border-radius 560ms cubic-bezier(.16, 1, .3, 1),
    opacity 280ms ease;
}

/* Keep logo and nav above the surface. */
.site-header > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Flat navigation — no button-shaped hover effect. */
.site-header nav {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  margin-left: auto !important;
}

.site-header nav a,
.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: 0 !important;
}

.site-header nav a {
  color: #5f6368 !important;
  transition: color 180ms ease !important;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.active {
  color: #202124 !important;
}

/* ---------------------------------------------------------
   SCROLLED PILL
--------------------------------------------------------- */

.site-header.is-scrolled {
  padding-left: max(22px, calc((100vw - 1068px) / 2 + 22px)) !important;
  padding-right: max(22px, calc((100vw - 1068px) / 2 + 22px)) !important;
}

.site-header.is-scrolled::before {
  top: 10px !important;
  left: 50% !important;

  width: min(1068px, calc(100% - 32px)) !important;
  height: 56px !important;

  transform: translateX(-50%) !important;

  background: #ffffff !important;

  border-color: #d9dce1 !important;
  border-radius: 30px !important;

  box-shadow:
    0 2px 7px rgba(32, 33, 36, .07),
    0 1px 2px rgba(32, 33, 36, .045) !important;
}

.site-header.is-scrolled::after {
  top: 11px !important;
  left: 50% !important;

  width: min(1066px, calc(100% - 34px)) !important;
  height: 54px !important;

  transform: translateX(-50%) !important;

  border: 1px solid rgba(255, 255, 255, .94) !important;
  border-radius: 29px !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(180, 185, 192, .08) !important;

  opacity: 1 !important;
}

/* No accidental transforms while scrolling. */
.site-header,
.site-header::before,
.site-header::after,
.site-header > * {
  will-change: auto;
}

.site-header::before,
.site-header::after {
  will-change:
    width,
    height,
    top,
    left,
    transform,
    border-radius,
    opacity,
    background-color,
    border-color,
    box-shadow;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 850px) {

  .site-header {
    height: 66px !important;

    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .site-header::before,
  .site-header::after {
    height: 66px !important;
  }

  .site-header.is-scrolled {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .site-header.is-scrolled::before {
    top: 7px !important;
    width: calc(100% - 24px) !important;
    height: 52px !important;
    border-radius: 27px !important;
  }

  .site-header.is-scrolled::after {
    top: 8px !important;
    width: calc(100% - 26px) !important;
    height: 50px !important;
    border-radius: 26px !important;
  }
}

/* =========================================================
   AUTHOR STUDIO — FIX EDITOR TOOLBAR VISIBILITY

   The editor and toolbar were both receiving the same stacking
   level, so the later .article-editor element was painting over
   the toolbar controls. Keep the toolbar above the editor.
========================================================= */

.visual-editor-wrapper {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
}

.editor-toolbar {
  position: sticky !important;
  top: 92px !important;
  z-index: 100 !important;
  isolation: isolate !important;
}

.article-editor {
  position: relative !important;
  z-index: 1 !important;
}

.image-controls {
  position: relative !important;
  z-index: 101 !important;
}

/* Make sure toolbar controls themselves are always clickable. */
.editor-toolbar button,
.editor-toolbar select {
  position: relative;
  z-index: 2;
}

@media (max-width: 850px) {
  .editor-toolbar {
    top: 74px !important;
  }
}

/* =========================================================
   FINAL RESPONSIVE NAVBAR STABILITY PATCH

   Keeps the navbar inside the viewport at every width.
   The logo stays anchored; the navigation becomes a contained
   horizontal rail on very narrow screens instead of overflowing.
========================================================= */

.site-header,
.site-header.is-scrolled {
  min-width: 0 !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

.site-header .brand {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.site-header nav {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 92px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.site-header nav::-webkit-scrollbar {
  display: none !important;
}

.site-header nav a {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

/* Large desktop: stable centered content without edge drift. */
@media (min-width: 1200px) {
  .site-header {
    padding-left: clamp(28px, calc((100vw - 1320px) / 2 + 28px), 180px) !important;
    padding-right: clamp(28px, calc((100vw - 1320px) / 2 + 28px), 180px) !important;
  }

  .site-header.is-scrolled {
    padding-left: max(24px, calc((100vw - 1068px) / 2 + 24px)) !important;
    padding-right: max(24px, calc((100vw - 1068px) / 2 + 24px)) !important;
  }

  .site-header nav {
    max-width: none !important;
    overflow: visible !important;
    gap: 4px !important;
  }
}

/* Tablet / medium desktop. */
@media (max-width: 1199px) and (min-width: 851px) {
  .site-header {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .site-header.is-scrolled {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .site-header nav {
    gap: 2px !important;
    max-width: calc(100% - 92px) !important;
  }

  .site-header.is-scrolled::before {
    width: calc(100% - 32px) !important;
    max-width: 1068px !important;
  }

  .site-header.is-scrolled::after {
    width: calc(100% - 34px) !important;
    max-width: 1066px !important;
  }
}

/* Tablet / large phone. */
@media (max-width: 850px) {
  .site-header,
  .site-header.is-scrolled {
    height: 66px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .site-header nav {
    max-width: calc(100% - 88px) !important;
    gap: 0 !important;
  }

  .site-header nav a {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .site-header.is-scrolled::before {
    left: 50% !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }

  .site-header.is-scrolled::after {
    left: 50% !important;
    width: calc(100% - 26px) !important;
    max-width: none !important;
  }
}

/* Narrow phones: keep the logo fixed and scroll only the nav rail. */
@media (max-width: 600px) {
  .site-header .brand {
    font-size: 0.82rem !important;
    letter-spacing: 0.10em !important;
  }

  .site-header nav {
    max-width: calc(100% - 76px) !important;
  }

  .site-header nav a {
    font-size: 0.78rem !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .site-header.is-scrolled::before {
    width: calc(100% - 16px) !important;
    border-radius: 25px !important;
  }

  .site-header.is-scrolled::after {
    width: calc(100% - 18px) !important;
    border-radius: 24px !important;
  }
}

/* Very narrow phones: guarantee zero horizontal overflow. */
@media (max-width: 420px) {
  .site-header,
  .site-header.is-scrolled {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  .site-header .brand {
    font-size: 0.76rem !important;
  }

  .site-header nav {
    max-width: calc(100% - 70px) !important;
  }

  .site-header nav a {
    font-size: 0.73rem !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .site-header.is-scrolled::before {
    width: calc(100% - 12px) !important;
  }

  .site-header.is-scrolled::after {
    width: calc(100% - 14px) !important;
  }
}

/* =========================================================
   KANJI — RESUME / ABOUT PAGE
========================================================= */

.resume-page {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(360px, 44vw)
    minmax(0, 1fr);

  min-height:
    calc(100vh - 78px);

  border-top:
    1px solid var(--line);
}


/* =========================================================
   LEFT PROFILE PANEL
========================================================= */

.resume-profile {
  position: sticky;

  top: 0;

  height:
    calc(100vh - 78px);

  min-height: 680px;

  overflow: hidden;

  background:
    #f3f4f6;

  border-right:
    1px solid var(--line);
}


.resume-photo-wrap {
  position: absolute;

  inset: 0;

  overflow: hidden;
}


.resume-photo {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  object-position: center;

  filter:
    saturate(.92)
    contrast(.98);
}


/*
  Soft white veil at the bottom.
  This keeps the text readable while preserving
  the photograph.
*/

.resume-photo-wrap::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(248, 249, 250, .94) 0%,
      rgba(248, 249, 250, .52) 24%,
      rgba(248, 249, 250, 0) 58%
    );

  pointer-events: none;
}


.resume-profile-content {
  position: absolute;

  z-index: 2;

  left: 0;
  right: 0;
  bottom: 0;

  padding:
    clamp(34px, 5vw, 70px);

  color:
    #171717;
}


.resume-profile-content .eyebrow {
  margin-bottom: 16px;

  color:
    #666b72;
}


.resume-profile-content h1 {
  margin: 0;

  font-size:
    clamp(4rem, 7vw, 7.5rem);

  line-height:
    .83;

  letter-spacing:
    -.065em;
}


.resume-profile-content h1 em {
  font-family:
    Georgia,
    serif;

  font-weight:
    400;

  letter-spacing:
    -.055em;
}


.resume-profile-summary {
  max-width:
    560px;

  margin:
    28px 0 22px;

  font-size:
    clamp(1rem, 1.25vw, 1.2rem);

  line-height:
    1.65;

  color:
    #4f555d;
}


.resume-status {
  display:
    inline-flex;

  align-items:
    center;

  gap: 9px;

  font-size:
    .82rem;

  color:
    #464b52;
}


.resume-status-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background:
    #e25563;

  box-shadow:
    0 0 0 4px rgba(226, 85, 99, .10);

  animation:
    kanjiHeartbeat 1.5s
    ease-in-out
    infinite;
}


.resume-profile-links {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 26px;
}


.resume-profile-links a {
  padding:
    7px 11px;

  border:
    1px solid rgba(70, 75, 82, .20);

  border-radius:
    999px;

  color:
    #444a51;

  font-size:
    .76rem;

  background:
    rgba(255, 255, 255, .54);
}


/* =========================================================
   RIGHT RESUME CONTENT
========================================================= */

.resume-content {
  min-width: 0;

  padding:
    clamp(44px, 6vw, 92px)
    clamp(34px, 6vw, 100px)
    100px;
}


.resume-section {
  max-width:
    920px;

  margin:
    0 auto 100px;

  padding-bottom:
    78px;

  border-bottom:
    1px solid var(--line);
}


.resume-section:last-child {
  margin-bottom: 0;

  border-bottom:
    0;
}


.resume-intro {
  padding-top:
    6px;
}


.resume-section-heading {
  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 40px;

  padding-bottom: 13px;

  border-bottom:
    1px solid var(--line);
}


.resume-index {
  color:
    #8a9097;

  font-size:
    .7rem;

  letter-spacing:
    .15em;
}


.resume-intro h2 {
  margin: 0 0 28px;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;

  font-size:
    clamp(2.8rem, 5vw, 5.5rem);

  line-height:
    .94;

  letter-spacing:
    -.065em;
}


.resume-intro h2 em {
  font-family:
    Georgia,
    serif;

  font-weight:
    400;
}


.resume-lead {
  max-width:
    800px;

  margin: 0;

  font-size:
    clamp(1.05rem, 1.4vw, 1.28rem);

  line-height:
    1.82;

  color:
    #565c63;
}


/* =========================================================
   RESUME ENTRIES
========================================================= */

.resume-entry {
  margin-bottom:
    46px;
}


.resume-entry:last-child {
  margin-bottom:
    0;
}


.resume-entry-top {
  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 25px;

  margin-bottom: 7px;
}


.resume-entry-top h3 {
  margin: 0;

  font-size:
    clamp(1.25rem, 1.8vw, 1.65rem);

  line-height:
    1.15;

  letter-spacing:
    -.03em;
}


.resume-entry-top span {
  flex:
    0 0 auto;

  color:
    #777d84;

  font-size:
    .8rem;
}


.resume-entry-meta {
  margin:
    0 0 13px;

  color:
    #8a9097;

  font-size:
    .72rem;

  letter-spacing:
    .13em;

  text-transform:
    uppercase;
}


.resume-entry p {
  max-width:
    800px;

  margin:
    0 0 13px;

  color:
    #5a6067;

  font-size:
    .98rem;

  line-height:
    1.78;
}


/* =========================================================
   SKILLS
========================================================= */

.resume-skill-grid {
  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  border-top:
    1px solid var(--line);

  border-left:
    1px solid var(--line);
}


.resume-skill {
  min-width:
    0;

  padding:
    28px;

  border-right:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}


.resume-skill > span {
  display:
    block;

  margin-bottom:
    24px;

  color:
    #959aa1;

  font-size:
    .68rem;

  letter-spacing:
    .15em;
}


.resume-skill h3 {
  margin:
    0 0 10px;

  font-size:
    1.05rem;

  letter-spacing:
    -.02em;
}


.resume-skill p {
  margin:
    0;

  color:
    #676d74;

  font-size:
    .88rem;

  line-height:
    1.72;
}


/* =========================================================
   SELECTED PROJECTS
========================================================= */

.resume-project {
  display:
    grid;

  grid-template-columns:
    55px
    minmax(0, 1fr);

  gap:
    22px;

  padding:
    28px 0;

  border-bottom:
    1px solid var(--line);
}


.resume-project:first-of-type {
  border-top:
    1px solid var(--line);
}


.resume-project-number {
  color:
    #979da4;

  font-size:
    .72rem;

  letter-spacing:
    .13em;
}


.resume-project h3 {
  margin:
    0 0 9px;

  font-size:
    1.14rem;

  letter-spacing:
    -.025em;
}


.resume-project p {
  max-width:
    760px;

  margin:
    0;

  color:
    #666c73;

  font-size:
    .94rem;

  line-height:
    1.75;
}


/* =========================================================
   RESEARCH INTERESTS
========================================================= */

.resume-interest-list {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    10px;
}


.resume-interest-list span {
  padding:
    10px 14px;

  border:
    1px solid var(--line);

  border-radius:
    999px;

  background:
    #fafbfc;

  color:
    #535960;

  font-size:
    .8rem;
}


/* =========================================================
   CONTACT
========================================================= */

.resume-contact {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    240px;

  gap:
    50px;

  align-items:
    end;
}


.resume-contact h2 {
  margin:
    10px 0 0;

  font-size:
    clamp(2.5rem, 4vw, 4.5rem);

  line-height:
    .94;

  letter-spacing:
    -.06em;
}


.resume-contact h2 em {
  font-family:
    Georgia,
    serif;

  font-weight:
    400;
}


.resume-contact-links {
  display:
    flex;

  flex-direction:
    column;

  border-top:
    1px solid var(--line);
}


.resume-contact-links a {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  padding:
    13px 0;

  border-bottom:
    1px solid var(--line);

  color:
    #4f555b;

  font-size:
    .82rem;
}


.resume-contact-links a span {
  color:
    #8b9198;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

  .resume-page {
    display:
      block;

    min-height:
      auto;
  }


  .resume-profile {
    position:
      relative;

    top:
      auto;

    height:
      min(720px, 100svh);

    min-height:
      620px;

    border-right:
      0;

    border-bottom:
      1px solid var(--line);
  }


  .resume-content {
    padding:
      55px 24px 80px;
  }


  .resume-section {
    margin-bottom:
      72px;

    padding-bottom:
      58px;
  }


  .resume-skill-grid {
    grid-template-columns:
      1fr;
  }


  .resume-contact {
    grid-template-columns:
      1fr;

    gap:
      35px;
  }

}


@media (max-width: 600px) {

  .resume-profile {
    height:
      620px;

    min-height:
      620px;
  }


  .resume-profile-content {
    padding:
      28px 22px 30px;
  }


  .resume-profile-content h1 {
    font-size:
      clamp(3.7rem, 17vw, 5.6rem);
  }


  .resume-profile-summary {
    margin-top:
      20px;

    font-size:
      .98rem;
  }


  .resume-profile-links {
    margin-top:
      20px;
  }


  .resume-content {
    padding:
      42px 19px 65px;
  }


  .resume-section-heading {
    margin-bottom:
      28px;
  }


  .resume-entry-top {
    display:
      block;
  }


  .resume-entry-top span {
    display:
      block;

    margin-top:
      6px;
  }


  .resume-project {
    grid-template-columns:
      40px
      minmax(0, 1fr);

    gap:
      12px;
  }


  .resume-contact h2 {
    font-size:
      clamp(2.7rem, 12vw, 4rem);
  }

}

.about-intro {
  text-align: justify;
  text-justify: inter-word;
}

/* =========================================================
   RESUME PROFILE — MORE OPEN / EDITORIAL TYPOGRAPHY
========================================================= */

/* Small category line */
.resume-profile-content .eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.4;
  white-space: nowrap;
}


/* Main name */
.resume-profile-content h1 {
  width: max-content;
  max-width: 100%;

  margin: 0;

  font-size: clamp(4.8rem, 7vw, 7.4rem);

  line-height: 0.86;

  /*
     Less negative tracking = wider, less condensed letters.
  */
  letter-spacing: -0.025em;

  /*
     Slight horizontal expansion.
  */
  transform: scaleX(1.055);
  transform-origin: left center;
}


/* Serif surname */
.resume-profile-content h1 em {
  display: inline-block;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 0.94em;

  font-weight: 400;

  letter-spacing: -0.02em;

  transform: scaleX(1.035);
  transform-origin: left center;
}


/* Current role line */
.resume-profile-content .resume-status {
  margin-top: 28px;

  font-size: 0.88rem;

  letter-spacing: 0.025em;

  line-height: 1.6;
}


/* ---------------------------------------------------------
   LARGE DESKTOP
--------------------------------------------------------- */

@media (min-width: 1200px) {

  .resume-profile-content .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
  }

  .resume-profile-content h1 {
    font-size: clamp(
      5rem,
      6.8vw,
      7.8rem
    );

    letter-spacing: -0.018em;

    transform: scaleX(1.07);
  }

  .resume-profile-content h1 em {
    letter-spacing: -0.012em;

    transform: scaleX(1.045);
  }

}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1100px) {

  .resume-profile-content .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.20em;
  }

  .resume-profile-content h1 {
    font-size: clamp(
      4rem,
      7vw,
      6rem
    );

    letter-spacing: -0.025em;

    transform: scaleX(1.035);
  }

  .resume-profile-content h1 em {
    transform: scaleX(1.02);
  }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

  .resume-profile-content .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    white-space: normal;
  }

  .resume-profile-content h1 {
    width: auto;
    max-width: 100%;

    font-size: clamp(
      3.4rem,
      15vw,
      5rem
    );

    line-height: 0.88;

    letter-spacing: -0.02em;

    transform: scaleX(1.01);
  }

  .resume-profile-content h1 em {
    letter-spacing: -0.01em;
    transform: none;
  }

  .resume-profile-content .resume-status {
    font-size: 0.8rem;
    letter-spacing: 0.01em;
  }

}