:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #5f6c66;
  --paper: #f4f6f0;
  --surface: #ffffff;
  --line: #dfe5dc;
  --teal: #087f73;
  --teal-dark: #075e56;
  --coral: #d95f43;
  --gold: #b98518;
  --violet: #6d5bd0;
  --shadow: 0 18px 48px rgba(22, 31, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  color: #f8fbf7;
  background: rgba(18, 28, 25, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav a,
.hero-actions a,
.entry-actions a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8fbf7;
  color: var(--teal-dark);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.top-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(248, 251, 247, 0.86);
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.header-note {
  color: rgba(248, 251, 247, 0.78);
  font-size: 0.92rem;
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 78vh;
  padding: 116px 32px 54px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(12, 19, 17, 0.9) 0%, rgba(12, 19, 17, 0.65) 48%, rgba(12, 19, 17, 0.2) 100%),
    url("/jshon-assets/hero-workbench.png") center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 19, 17, 0.4), rgba(12, 19, 17, 0) 45%),
    rgba(12, 19, 17, 0.08);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: #f8fbf7;
}

.eyebrow,
.tool-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ff0df;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: 3.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(248, 251, 247, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.entry-actions,
.note-actions,
.timer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link,
.secondary-link,
.entry-actions a,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.hero-actions .primary-link {
  background: #f8fbf7;
  color: var(--teal-dark);
}

.hero-actions .secondary-link {
  border-color: rgba(248, 251, 247, 0.3);
  color: #f8fbf7;
  background: rgba(248, 251, 247, 0.08);
}

.primary-link:hover,
.secondary-link:hover,
.entry-actions a:hover,
button:hover {
  transform: translateY(-1px);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid rgba(248, 251, 247, 0.18);
  border-radius: 8px;
  background: rgba(248, 251, 247, 0.14);
  backdrop-filter: blur(10px);
}

.status-strip div {
  padding: 14px 16px;
}

.status-strip dt {
  margin-bottom: 4px;
  color: rgba(248, 251, 247, 0.62);
  font-size: 0.74rem;
}

.status-strip dd {
  margin: 0;
  font-weight: 800;
}

.tool-shell {
  padding: 42px 32px 74px;
}

.section-heading,
.tools-grid,
.entry-band,
.site-footer {
  width: min(1180px, calc(100vw - 64px));
  margin-inline: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.entry-band h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.18;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calculator-card {
  border-top: 4px solid var(--teal);
}

.todo-card {
  border-top: 4px solid var(--coral);
}

.timer-card {
  border-top: 4px solid var(--gold);
}

.note-card {
  border-top: 4px solid var(--violet);
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  margin-bottom: 16px;
}

.tool-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.tool-badge {
  flex: none;
  max-width: 112px;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  border-radius: 8px;
  background: #eef4ef;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.calc-display {
  display: grid;
  align-items: center;
  justify-content: end;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111816;
  color: #f8fbf7;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

button {
  background: #f3f6f2;
  color: var(--ink);
  border-color: var(--line);
}

button:active {
  transform: translateY(0);
}

button.accent {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.span-two {
  grid-column: span 2;
}

.todo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.14);
}

input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 190px;
  padding: 12px;
  line-height: 1.7;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 232px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
}

.todo-item input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.todo-item span {
  overflow-wrap: anywhere;
}

.todo-item.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.delete-task {
  min-height: 32px;
  padding: 0 10px;
  color: var(--coral);
  background: #fff4f0;
  border-color: #f0c9bd;
}

.timer-face {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 133, 24, 0.12), rgba(8, 127, 115, 0.08)),
    #fbfcf9;
  font-size: 3rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.timer-controls {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.timer-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.note-actions {
  margin-top: 12px;
}

.entry-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 72px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.entry-actions a {
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #f7f8f4;
  font-weight: 800;
}

.entry-actions a:first-child {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    padding: 14px 18px;
  }

  .top-nav {
    gap: 0;
    font-size: 0.86rem;
  }

  .top-nav a {
    padding: 7px 6px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-note {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 74svh;
    padding: 96px 20px 38px;
    background-position: 58% center;
  }

  h1 {
    font-size: 2.15rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .tool-shell {
    padding: 34px 20px 54px;
  }

  .section-heading,
  .tools-grid,
  .entry-band,
  .site-footer {
    width: min(100%, calc(100vw - 40px));
  }

  .section-heading,
  .entry-band {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .tool-card {
    min-height: 0;
  }

  .timer-face {
    min-height: 130px;
    font-size: 2.5rem;
  }
}
