:root {
  color-scheme: light;
  --bg: #f3efe6;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #d8d0c2;
  --accent: #8c3a22;
  --paper: #fbf8f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  border-top: 4px solid var(--accent);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

h1, h2, h3, .brand {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 2.4rem 0 .4rem; }
h3 { font-size: 1.2rem; margin: 0 0 .35rem; }

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

.wrap { width: min(40rem, calc(100% - 2.5rem)); margin-inline: auto; }
main { padding: 2rem 0 3rem; }

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: .4rem .6rem;
  z-index: 2;
}

.top { border-bottom: 1px solid var(--line); }
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.brand { color: inherit; text-decoration: none; font-size: 1.35rem; }

nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.prose { white-space: pre-wrap; margin: 0; }
.summary { font-size: 1.15rem; }
.tags { color: var(--muted); font-size: .92rem; }
.hint { color: var(--muted); font-size: .92rem; margin: .2rem 0 0; }
.cta { margin-top: 1.25rem; }
.cta a { font-weight: 600; }

ol.services, ul.projects { list-style: none; margin: .5rem 0 0; padding: 0; }
ol.services { counter-reset: svc; }
ol.services li {
  counter-increment: svc;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
ol.services li h3::before {
  content: counter(svc, decimal-leading-zero);
  display: block;
  margin-bottom: .35rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--accent);
}

ul.projects li { border-top: 1px solid var(--line); padding: 1rem 0; }
ul.projects a { color: inherit; text-decoration: none; }
ul.projects a span { display: block; color: var(--muted); }
ul.projects a:hover h3 { color: var(--accent); }

.gallery { display: grid; gap: 1rem; margin-top: 1.5rem; }
.gallery img, .shot img {
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line);
}
.shot { margin-top: 1rem; }

label { display: grid; gap: .35rem; margin-top: 1rem; }
input[type="text"], input[type="password"], input[type="url"], input:not([type]), textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
textarea { resize: vertical; }
button {
  margin-top: 1rem;
  font: inherit;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  padding: .55rem 1rem;
}
button.danger {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
button:hover { opacity: .88; }

.notice, .error { padding-left: .75rem; }
.notice { border-left: 3px solid #2f6f4e; }
.error { border-left: 3px solid var(--accent); }
.block { margin-top: 1rem; padding-top: .25rem; border-top: 1px solid var(--line); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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