@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #2C2C2A;
  --cream: #F0E6D2;
  --cream-alt: #E7DAB9;
  --card: #FAF6EC;
  --red: #C1272D;
  --pink: #D4537E;
  --chrome: #B4B2A9;
  --text-muted: #6B6A62;
  --max-width: 960px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(44, 44, 42, 0.08);
  --shadow-md: 0 6px 20px rgba(44, 44, 42, 0.12);
  --shadow-lift: 0 14px 30px rgba(44, 44, 42, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, nav a, .btn {
  font-family: var(--font-display);
}

a { transition: color 0.2s var(--ease); }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--pink); text-decoration: underline; }

.site-header {
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}
.logo:hover { text-decoration: none; color: var(--ink); }

.logo-mark {
  width: 34px;
  height: 34px;
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}

nav a {
  position: relative;
  color: var(--ink);
  margin-left: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 2px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

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

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(193, 39, 45, 0.08) 0%, rgba(193, 39, 45, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  filter: drop-shadow(var(--shadow-sm));
}

.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  letter-spacing: 1px;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0 0 32px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--cream-alt);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--chrome);
  border-top: 4px solid var(--red);
  border-radius: 2px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.card h3 a {
  color: var(--ink);
}

.card h3 a:hover {
  color: var(--red);
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.tag-list li {
  background: var(--card);
  border: 1px solid var(--chrome);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tag-list li:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

.time-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid var(--chrome);
  border-top: 4px solid var(--red);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.time-form-row {
  display: flex;
  gap: 14px;
}

.time-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.time-form input,
.time-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 8px 10px;
  border: 1px solid var(--chrome);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.time-form input:focus,
.time-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.12);
}

.time-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.total-hours {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.time-table {
  width: 100%;
  border-collapse: collapse;
}

.time-table th,
.time-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--chrome);
  font-size: 0.9rem;
}

.time-table th {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.delete-btn {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.delete-btn:hover {
  background: var(--red);
  color: #fff;
}

.site-footer {
  border-top: 3px solid var(--ink);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  nav a { margin-left: 14px; font-size: 0.75rem; }
  .hero h1 { font-size: 2rem; }
  .logo span { display: none; }
}
