/* ==========================================================================
   suchits.com
   Editorial bio layout: fixed sidebar + content column, heritage
   green-and-brass palette, light and dark themes.
   ========================================================================== */

:root {
  --bg:      #FAF9F4;
  --ink:     #35362F;
  --muted:   #6C6E66;
  --faint:   #8C8E86;
  --accent:  #1E4B3A;
  --gold:    #9C7A3C;
  --link:    #8A3A3F;
  --greeting: #6B5A3C;
  --rule:    rgba(53, 54, 47, .12);
  --grain-opacity: .04;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad:  clamp(1.5rem, 5vw, 4.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
  --bg:     #1C1F1A;
  --ink:    #E6E4DC;
  --muted:  #9BA69D;
  --faint:  #6E7871;
  --accent: #5CBE92;
  --gold:   #D4AF74;
  --link:   #E0917E;
  --greeting: #C9A96E;
  --rule:   rgba(230, 228, 220, .13);
  --grain-opacity: .07;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  overflow-wrap: break-word;
  transition: background-color .25s var(--ease), color .25s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Shell — fixed sidebar, fluid content, left aligned throughout
   -------------------------------------------------------------------------- */

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 60rem;
  margin-inline: auto;
  padding: var(--pad);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.sidebar {
  position: sticky;
  top: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100dvh - (var(--pad) * 2));
  padding-top: .3rem;
  padding-bottom: .3rem;
}

.name {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
}

.role {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

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

.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.social {
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  color: var(--muted);
  line-height: 0;
  transition: color .18s var(--ease);
}

.social a:hover,
.social a:focus-visible {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.content { min-width: 0; }

.greeting {
  margin: 0 0 .6rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--greeting);
}

.lede {
  max-width: 42ch;
  margin: 0 0 clamp(2.25rem, 5vw, 3.25rem);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.spec {
  margin: 0;
}

.row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 4vw, 2.5rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.row:last-child { border-bottom: 1px solid var(--rule); }

.row dt {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}

.row dd {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}

.row dd .line {
  display: block;
}

.row dd .line + .line {
  margin-top: .3rem;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--gold);
  text-decoration-color: currentColor;
}

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

/* --------------------------------------------------------------------------
   Small screens — sidebar collapses above content
   -------------------------------------------------------------------------- */

@media (max-width: 42rem) {
  .shell {
    display: block;
  }

  .sidebar {
    position: static;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2.5rem, 8vw, 3.5rem);
    padding: 0;
  }

  .identity { flex: 1 1 auto; }

  .sidebar-foot {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
}

/* --------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

@media print {
  .grain { display: none; }

  body {
    background: #fff;
    color: #000;
  }

  a { color: #000; }
}
