/* COC-71: website of Clean O'clock. Colors and shapes follow design/system/CURRENT-VALUES.md. */
:root {
  color-scheme: light;
  --background: #FBF9F2;
  --sheet: #F4F2EA;
  --ink: #252923;
  --secondary: #676C62;
  --sage: #4C6545;
  --sage-dark: #3E5538;
  --sage-light: #EEF3E8;
  --red: #A2463D;
  --hairline: #E4E1D8;
  --note: #FFFDF2;
  --margin: 20px;
  --card-radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  /* System font only, sized by the reader's own setting (Dynamic Type on the iPhone). */
  font: -apple-system-body;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
  hyphens: auto;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 var(--margin) 3rem;
  padding-left: max(var(--margin), env(safe-area-inset-left));
  padding-right: max(var(--margin), env(safe-area-inset-right));
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 1rem;
}

header.site img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 22.5%;
  flex: none;
}

header.site a {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.25rem;
}

p, ul, ol, dl { margin: 0 0 0.9rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--sage-dark); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.lead { color: var(--secondary); font-size: 1.1rem; }
.secondary { color: var(--secondary); }
.small { font-size: 0.9rem; color: var(--secondary); }

.hero {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.hero img {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 22.5%;
  box-shadow: 0 7px 20px rgba(37, 41, 35, 0.16);
}

.hero h1 { font-size: 2.3rem; margin-top: 1.5rem; }
.hero p { max-width: 22rem; margin-left: auto; margin-right: auto; }

.card {
  background: var(--sheet);
  border-radius: var(--card-radius);
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}

.card > :last-child { margin-bottom: 0; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.5rem 1.75rem;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 7px 10px rgba(76, 101, 69, 0.22);
}

.button.pending {
  background: var(--sage-light);
  color: var(--sage-dark);
  box-shadow: none;
}

/* Marks text that is a draft or still waits for Daniel's details. Removed before publication. */
.draft {
  background: var(--note);
  border: 2px dashed var(--red);
  border-radius: var(--card-radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.draft > :last-child { margin-bottom: 0; }
.draft strong { color: var(--red); }

.open {
  background: #F6E3DF;
  color: #7A2F28;
  border-radius: 6px;
  padding: 0.05em 0.35em;
  font-weight: 600;
}

details {
  border-top: 1px solid var(--hairline);
  padding: 0.2rem 0;
}

details:last-of-type { border-bottom: 1px solid var(--hairline); }

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.7rem 0;
  min-height: 44px;
}

details > :not(summary) { color: var(--ink); }
details > :last-child { margin-bottom: 0.9rem; }

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 0.9rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
}

footer.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--secondary);
}

footer.site nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
