/* Tailwind v3 preflight (compiled once), then OMONA's hand-written styles. Edit this file directly. */
/*
! tailwindcss v3.4.0 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden] {
  display: none;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

:root {
  --canvas: #17181c;
  --panel: #1f2126;
  --panel-alt: #24262c;
  --border: #2c2f36;
  --text: #ece9e4;
  --text-dim: #9a9da6;
  --accent: #f2644f;
  --accent-text: #f2644f;
  --accent-strong: #ca3058;
  --accent-cta-start: #d14035;
  --accent-soft: rgba(242, 100, 79, 0.14);
  --focus-ring: #f2644f;
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 24px -14px rgba(0, 0, 0, 0.65);
  --shadow-panel-hover: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 32px -14px rgba(0, 0, 0, 0.75);
  --shadow-toolbar: 0 8px 20px -12px rgba(0, 0, 0, 0.5);
  --shadow-cta: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 28px -10px rgba(202, 48, 88, 0.55);
  --shadow-cta-hover: 0 1px 0 rgba(255, 255, 255, 0.24) inset, 0 18px 36px -10px rgba(202, 48, 88, 0.7);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

:root[data-theme="light"] {
  --canvas: #fbfaf8;
  --panel: #f2f0ec;
  --panel-alt: #ebe8e2;
  --border: #ddd9d1;
  --text: #1b1b1d;
  --text-dim: #6b6e76;
  --accent-text: #a62e1b;
  --accent-soft: rgba(242, 100, 79, 0.1);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 24px -16px rgba(27, 27, 29, 0.22);
  --shadow-panel-hover: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 32px -16px rgba(27, 27, 29, 0.28);
  --shadow-toolbar: 0 8px 20px -14px rgba(27, 27, 29, 0.18);
}

* {
  box-sizing: border-box;
}

body.app {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* accent-strong, not accent: white on #F2644F is 3.1:1 */

::-moz-selection {
  background: var(--accent-strong);
  color: #fff;
}

::selection {
  background: var(--accent-strong);
  color: #fff;
}

html {
  scrollbar-color: var(--border) var(--canvas);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
  border: 3px solid var(--canvas);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link: visually hidden until keyboard-focused */

.skip-link {
  position: fixed;
  top: -48px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* A quiet, static nod to the retired paper-plane identity — no motion */

.toolbar-plane {
  color: var(--text-dim);
  flex: 0 0 auto;
}

/* Toolbar */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-toolbar);
}

.toolbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.toolbar-logo {
  display: block;
}

.toolbar-path {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle {
  width: 32px;
}

.lang-toggle {
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lang-toggle:hover,
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* Shell layout */

.shell {
  display: flex;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
}

/* Pass-through on desktop: .sidebar must be .shell's direct flex item for
   its own flex-basis to size it; the mobile media query below turns this
   into a real sticky box for the horizontal tab strip. */

.sidebar-wrap {
  display: contents;
}

.sidebar {
  position: sticky;
  top: 56px;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 12px;
  height: calc(100vh - 56px);
  border-right: 1px solid var(--border);
}

.sidebar-more-hint {
  display: none;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-icon {
  flex: 0 0 auto;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.sidebar-item:hover {
  background: var(--panel-alt);
  color: var(--text);
}

.sidebar-item.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

.sidebar-item.is-active .sidebar-icon {
  color: var(--accent);
}

.canvas {
  flex: 1 1 auto;
  min-width: 0;
  padding: 56px 48px 96px;
}

.story {
  max-width: 640px;
  padding: 40px 0;
  scroll-margin-top: 80px;
}

.story + .story {
  border-top: 1px solid var(--border);
}

.story-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.intro-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.intro-avatar {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border-radius: 8px;
  border: 1px solid var(--border);
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: var(--shadow-panel);
}

.intro-text {
  min-width: 0;
}

.story-heading {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.story-heading--sm {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  margin-bottom: 24px;
}

.story-copy {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 62ch;
}

.story-footnote {
  margin: 32px 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Args table (Skills, What I Do) */

.args-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  transition: box-shadow 0.2s ease;
}

.args-table:hover {
  box-shadow: var(--shadow-panel-hover);
}

.args-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 13px 16px;
  background: var(--panel);
}

.args-row:nth-child(even) {
  background: var(--panel-alt);
}

.args-row + .args-row {
  border-top: 1px solid var(--border);
}

.args-key {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-text);
}

.args-value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

/* A requested path (404) is one unbroken token; let it wrap anywhere rather than overflow the row. */
.args-value--path {
  overflow-wrap: anywhere;
}

/* The 404's request table sits between its lead sentence and the way-out actions. */
.story-copy + .args-table {
  margin-top: 24px;
}

.args-table + .actions-panel {
  margin-top: 16px;
}

/* Contact actions */

.actions-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The Contact lead sentence sits between the heading and the actions */

.story-copy + .actions-panel {
  margin-top: 24px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-panel);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease,
    box-shadow 0.2s ease;
}

.action-row:hover {
  border-color: var(--accent);
  transform: translateX(2px);
  box-shadow: var(--shadow-panel-hover);
}

.action-row--primary {
  background: linear-gradient(129deg, var(--accent-cta-start) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-cta);
}

.action-row--primary .action-key,
.action-row--primary .action-value,
.action-row--primary .action-arrow {
  color: #fff;
}

.action-row--primary:hover {
  box-shadow: var(--shadow-cta-hover);
  border-color: transparent;
}

.action-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 62px;
}

.action-value {
  flex: 1 1 auto;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}

.action-arrow {
  flex: 0 0 auto;
  color: var(--text-dim);
}

/* Inspector-hover signature interaction */

[data-inspect] {
  outline: 1px dashed transparent;
  outline-offset: 10px;
  border-radius: 4px;
  transition: outline-color 0.2s ease;
  position: relative;
}

[data-inspect]:hover,
[data-inspect]:focus-within {
  outline-color: var(--accent);
}

[data-inspect]::before {
  content: attr(data-inspect-label);
  position: absolute;
  top: -10px;
  left: 10px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

[data-inspect]:hover::before,
[data-inspect]:focus-within::before {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .sidebar-item,
  .action-row,
  .args-table,
  [data-inspect],
  [data-inspect]::before {
    transition: none;
  }
}

/* Mobile */

@media (max-width: 800px) {
  .shell {
    flex-direction: column;
  }

  .intro-row {
    flex-direction: column;
    gap: 16px;
  }

  .intro-avatar {
    width: 88px;
    height: 88px;
  }

  .sidebar-wrap {
    display: block;
    position: sticky;
    top: 56px;
    z-index: 20;
    width: 100%;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
  }

  .sidebar {
    position: static;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    background: transparent;
    border-right: none;
    border-bottom: none;
  }

  .sidebar-more-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    padding-right: 6px;
    color: var(--text-dim);
    background: linear-gradient(to right, transparent, var(--canvas) 65%);
    pointer-events: none;
  }

  .sidebar-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 14px 10px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }

  .sidebar-item:hover {
    background: transparent;
  }

  .sidebar-item.is-active {
    background: transparent;
    border-bottom-color: var(--accent);
  }

  .canvas {
    padding: 32px 20px 64px;
  }

  .story {
    max-width: 100%;
  }

  .args-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
