@font-face {
  font-family: "Inter";
  src: url("./Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1f1ee;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --line: #d4d4ce;
  --text: #1f1f1d;
  --muted: #5f5e58;
  --accent: #2f6feb;
  --accent-soft: #edf3ff;
  --surface-shadow: 0 1px 0 rgba(15, 15, 15, 0.08), 0 14px 34px -16px rgba(15, 15, 15, 0.34);
  --shell-shadow: 0 1px 0 rgba(15, 15, 15, 0.05), 0 10px 24px -18px rgba(15, 15, 15, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("./background.jpg");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html.js body {
  opacity: 0;
  transition: opacity 0.14s ease;
}

html.js body.page-ready {
  opacity: 1;
}

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

.page {
  width: min(980px, 92vw);
  margin: 28px auto 44px;
}

.doc-page {
  width: min(860px, 92vw);
  margin: 28px auto 44px;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 0.9rem;
}

.doc-back:hover {
  color: rgb(255, 255, 255);
  opacity: 0.86;
}

.doc-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc-card {
  border: 1px solid var(--line);
  background: #ffffffde;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 0 rgba(15, 15, 15, 0.04), 0 6px 20px -22px rgba(15, 15, 15, 0.28);
}

.doc-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.doc-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 550;
}

.doc-lead {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #3e3d38;
  max-width: 68ch;
}

.doc-thumb {
  display: block;
  width: min(100%, 420px);
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.doc-thumb-large {
  width: 100%;
  max-width: 100%;
}

.doc-section {
  margin-top: 18px;
  max-width: none;
}

.doc-section h2 {
  margin: 0 0 10px 0;
  font-size: 1.06rem;
  font-weight: 600;
  color: #34332f;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doc-section p {
  margin: 0;
  font-size: 1.06rem;
  color: #31302c;
  line-height: 1.62;
}

.doc-section p + p {
  margin-top: 8px;
}

.doc-section strong {
  font-weight: 600;
  color: #262520;
}

.note-underline {
  text-decoration: underline;
  text-decoration-color: #9fbaf8;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.note-punch {
  border-left: 2px solid #cfdcfb;
  padding-left: 10px;
}

.doc-quote {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 2px solid #cfdcfb;
  background: #f8f9ff;
  border-radius: 8px;
  color: #37362f;
  font-size: 1rem;
  line-height: 1.6;
}

.doc-list {
  margin: 0;
  padding-left: 18px;
}

.doc-list li {
  color: #31302c;
  font-size: 1.06rem;
  line-height: 1.72;
  margin-bottom: 6px;
}

.doc-list li::marker {
  color: #8c8b86;
}

.core-list {
  margin: 0;
  padding-left: 1.45rem;
}

.core-list li {
  color: #31302c;
  font-size: 1rem;
  line-height: 1.66;
  margin-bottom: 7px;
}

.core-list li::marker {
  color: #8a8881;
  font-weight: 600;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-tags {
  margin: 8px 0 12px;
}

.feature-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.88rem;
  color: #4a4944;
  background: #f5f5f2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.showcase {
  padding: 14px;
}

.showcase.panel,
.about.panel,
.split.panel,
.contact.panel {
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  border: none;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.showcase .hero {
  margin: 0;
}

.intro,
.meta,
.item,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 15px;
  box-shadow: var(--surface-shadow);
}

.intro {
  padding: 22px;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  color: var(--muted);
}

h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.summary {
  margin-top: 12px;
  max-width: 56ch;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #4f4e48;
}

.bio-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bio-segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bio-separator {
  color: #8a8983;
}

.bio-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid #c7d7fb;
  padding-bottom: 1px;
}

.bio-link:hover {
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

.emoji-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a,
.item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 7px 11px;
  font-size: 0.84rem;
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.links a:hover,
.item a:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: #c8c8c2;
}

.links a.inline-mail-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  border-bottom: 1px solid #c7d7fb;
  border-radius: 0;
  padding: 1px 0;
}

.links a.inline-mail-link:hover {
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

.meta {
  padding: 0;
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  max-width: 360px;
  justify-self: start;
  overflow: hidden;
}

.meta img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.work {
  margin-top: 12px;
}

.showcase .work {
  margin-top: 14px;
}

.access-list {
  display: grid;
  gap: 8px;
}

.access-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbf9;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--surface-shadow);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.access-item:hover {
  background: #f2f2ef;
  border-color: #c8c8c2;
}

.access-item-primary {
  justify-content: center;
  justify-self: start;
  width: fit-content;
  background: linear-gradient(180deg, #3d7dff 0%, #2f6feb 100%);
  border-color: #2b63d7;
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 1px 2px rgba(15, 15, 15, 0.14);
}

.access-item-primary .access-name {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

.access-item-primary:hover {
  background: linear-gradient(180deg, #4a86ff 0%, #3a76ef 100%);
  border-color: #336de5;
}

.doc-access {
  margin-top: 14px;
}

.access-name {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.showcase .intro,
.showcase .meta,
.showcase .item {
  box-shadow: var(--surface-shadow);
}

.about,
.split,
.contact {
  margin-top: 12px;
}

.legal {
  margin: 32px 0 0;
  padding: 0 6px 10px;
  text-align: center;
}

.legal-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1;
  color: #ffffff;
}

.section-head {
  padding: 6px 2px 10px;
}

h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  color: #5e5d57;
}

h2 svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  fill: currentColor;
  flex: 0 0 auto;
}

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

.item {
  padding: 11px 12px;
  position: relative;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.app-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-title svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-logo-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

.item p {
  margin-top: 7px;
  color: #585751;
  font-size: 0.87rem;
  line-height: 1.45;
  min-height: 52px;
}

.item a {
  margin-top: 8px;
}

.panel {
  padding: 14px;
}

.prose p + p {
  margin-top: 10px;
}

.prose p {
  color: #4f4e48;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.split-col {
  min-width: 0;
}

.split-col-wide {
  grid-column: 1 / -1;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.note-item {
  display: grid;
  gap: 8px;
}

.note-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.note-item a,
.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid #c7d7fb;
  padding-bottom: 1px;
  font-size: 0.88rem;
}

.note-item a:hover,
.mail-link:hover {
  border-bottom-color: var(--accent);
  background: var(--accent-soft);
}

.contact-copy p {
  margin-top: 8px;
  color: #4f4e48;
  font-size: 0.92rem;
  line-height: 1.55;
}

.mail-link {
  margin-top: 12px;
  margin-right:8px;
}

.contact-copy .mail-link + .mail-link {
  margin-top: 8px;
}

.mail-link svg,
.note-item a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.links a svg,
.item a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: 0 0 auto;
}

.item a svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work .app-title svg,
.work .app-logo-icon {
  width: 35px;
  height: 30px;
  border-radius: 8px;
  padding: 3px;
}

.work .app-logo-icon {
  padding: 0px;
}

@media (prefers-reduced-motion: reduce) {
  html.js body,
  html.js body.page-ready {
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .meta {
    width: 100%;
    height: auto;
    max-width: 100%;
    justify-self: start;
  }

  .meta img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

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

  .notes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-list {
    padding-left: 1.3rem;
  }
}

@media (max-width: 560px) {
  .page {
    margin-top: 18px;
    margin-bottom: 28px;
  }

  .intro,
  .item,
  .panel {
    padding: 12px;
  }

  .showcase {
    padding: 12px;
  }

  .notes-list {
    grid-template-columns: 1fr;
  }
}
