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

html {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #0f0f0f;
  color: #e8e8e8;
  min-height: 100dvh;
  padding: 0 16px env(safe-area-inset-bottom);
}

#app {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* Inputs */

.inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}

.input-group input::-webkit-inner-spin-button,
.input-group input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-group input:focus {
  border-color: #555;
}

/* Recipe sections */

.recipe-section {
  margin-bottom: 28px;
}

.recipe-section h2 {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.tag {
  font-size: 0.7rem;
  color: #555;
  margin-left: 4px;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}

.label {
  font-size: 0.95rem;
  color: #aaa;
}

.value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f0f0f0;
}

.unit {
  font-size: 0.85rem;
  color: #666;
  margin-left: 4px;
  min-width: 14px;
}

/* Total dough */

.total {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid #2a2a2a;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-label {
  font-size: 1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.total-value {
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.total-unit {
  font-size: 1rem;
  color: #666;
  margin-left: 6px;
}
