:root {
  --text: #334155;
  --muted: #64748b;
  --heading: #0f172a;
  --accent: #8c2232;
  --accent-hover: #701b28;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
  color: var(--text);
  background: #ffffff;
  overflow-wrap: break-word;
  word-break: keep-all;
}

header, main, footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
}

.site-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.site-name a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-name img {
  display: block;
  width: 64px;
  height: 64px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1.25rem;
}

header nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

header nav a:hover {
  color: var(--heading);
  text-decoration: none;
}

header nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

header nav a:focus-visible {
  outline-offset: -2px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--heading);
  margin: 2rem 0 1rem;
}

.mission {
  font-size: 2rem;
  line-height: 1.4;
}

.mission,
.mission + .lead {
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--heading);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .mission {
    font-size: 1.5rem;
  }
}

p {
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1.75rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

ul, ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}

li {
  margin-bottom: 0.65rem;
  color: var(--text);
  line-height: 1.7;
}

li strong {
  color: var(--heading);
}

blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  color: #1e293b;
  font-size: 1.05rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

blockquote p {
  margin: 0;
  line-height: 1.65;
}

/* One picture between the mission and its two axes: 780px wide, shrinking with
   the screen down to 300px; below 340px of content it reaches into the side
   padding, so the negative margins keep it centred. */
.vision-image {
  display: block;
  width: clamp(300px, 100%, 780px);
  height: auto;
  margin: 3rem calc((100% - clamp(300px, 100%, 780px)) / 2);
}

/* The two mission axes: an h2 title on its own line, the sentence below,
   both centred. */
.axes {
  padding-left: 0;
  list-style: none;
  text-align: center;
}

.axes li {
  margin-bottom: 1.75rem;
}

.axes h2 {
  margin: 0 0 0.4rem;
}

/* Company history: one long line on the left with a point per date; the
   freelance years before TIMBERAY are grey hollow points, the founding a
   larger accent point, the years after it filled accent points. */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 2px;
  background: #cbd5e1;
}

.timeline h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.timeline .era-timberay h3 {
  color: var(--accent);
}

.timeline .era + .era {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #cbd5e1;
}

.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  margin: 0 0 1.25rem;
  color: var(--heading);
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: calc(-2rem + 2px);
  width: 12px;
  height: 12px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background: #ffffff;
}

.timeline .era-timberay li::before {
  border-color: var(--accent);
  background: var(--accent);
}

.timeline .founding {
  font-weight: 700;
}

.timeline .founding::before {
  top: 0.25rem;
  left: calc(-2rem - 1px);
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 4px rgba(140, 34, 50, 0.15);
}

.timeline time {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.timeline .era-timberay time {
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding-left: 0;
  list-style: none;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
}

.card h3 img {
  flex: none;
}

.card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.card a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

.card .card-link {
  margin-top: auto;
}

footer {
  margin-top: 5rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.5rem;
}

footer p {
  margin: 0.35rem 0;
}

.points {
  padding-left: 0;
  list-style: none;
}

.points li {
  margin-bottom: 2.5rem;
}

.points img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 1rem auto 0;
}

.points .point-status {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}
