/* Cornwall Computers. One stylesheet. No framework, no font request. */

:root {
  color-scheme: light;
  --bg: #f3f0ea;
  --paper: #fbfaf6;
  --panel: #f7f4ee;
  --ink: #172033;
  --muted: #3a4656;
  --line: #d4cdc2;
  --accent: #1b3f39;
  --accent-deep: #132e2a;
  --accent-text: #f4f1ea;
  --link: #123f3a;
  --link-hover: #0c2c28;
  --quiet: #e7eeec;
  --placeholder: #f4e4c4;
  --placeholder-edge: #6a4b12;
  --footer: #172033;
  --footer-text: #f3f0ea;
  --footer-soft: #d5ddd8;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --wrap: 68rem;
}

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

html {
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  margin: 0 0 1rem;
  max-width: 14em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 2rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.4rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

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

::selection {
  background: #d5e4e0;
  color: var(--ink);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.skip:focus {
  transform: none;
}

.topbar {
  background: var(--footer);
  color: var(--footer-text);
  border-bottom: 2px solid var(--accent);
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem 1.25rem;
  padding-block: 0.1rem;
}

.topbar-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-soft);
}

.topbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar a {
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}

.topbar :focus-visible {
  outline-color: var(--accent-text);
}

.header-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  max-width: none;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 5.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-close {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label .menu-open {
  display: none;
}

.nav-toggle:checked + .nav-toggle-label .menu-close {
  display: inline;
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.primary-nav {
  display: none;
  flex-basis: 100%;
}

.nav-toggle:checked ~ .primary-nav {
  display: block;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.6rem;
  display: grid;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  border-bottom: 1px solid var(--line);
}

.nav-secondary a {
  color: var(--muted);
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.standfirst {
  margin: 0;
  max-width: 38rem;
  font-size: 1.28rem;
  line-height: 1.5;
}

.page-head {
  padding: 1.75rem 0 0.5rem;
}

.page-head::after {
  content: "";
  display: block;
  width: 6.5rem;
  height: 3px;
  margin-top: 1.15rem;
  background: linear-gradient(90deg, var(--accent), #c4a484);
}

.crumbs {
  padding-top: 1.15rem;
  font-size: 0.95rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.crumbs [aria-hidden="true"] {
  color: var(--muted);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 1.75rem;
  padding: 1.6rem 0 0.25rem;
}

.hero h1 {
  max-width: 11em;
}

.hero-aside {
  display: grid;
  align-content: start;
}

.coast {
  display: block;
  width: 100%;
  height: 14rem;
  background: #e7f1eb;
}

.hero-aside .enquiry-panel {
  position: relative;
  margin: -3.1rem 0.9rem 0;
  border-top: 3px solid var(--accent);
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.2rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--accent-text);
}

.button-quiet {
  background: transparent;
  color: var(--accent);
}

.button-quiet:hover {
  background: var(--quiet);
  color: var(--accent);
}

.enquiry-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.15rem;
}

.enquiry-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.lines {
  margin: 0 0 0.8rem;
}

.lines div {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.4rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.lines dt {
  margin: 0;
  color: var(--muted);
}

.lines dd {
  margin: 0;
  font-size: 1.2rem;
}

.lines a,
.tel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}

.prose p,
.prose li,
.standfirst,
.next-step {
  max-width: 40rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.service-cards {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.service-cards a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  height: 100%;
  padding: 1.05rem 1.1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.service-cards a:hover {
  border-color: var(--accent);
  background: #fff;
}

.service-cards .icon {
  grid-row: 1 / span 2;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--line);
}

.service-cards .icon svg {
  width: 1.55rem;
  height: 1.55rem;
  max-width: none;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--ink);
}

.card-text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.service-index {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.service-index li {
  display: grid;
  gap: 0.15rem 1rem;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.service-index a {
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--ink);
  text-underline-offset: 0.14em;
}

.service-index li > span:last-child {
  color: var(--muted);
}

.idx {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.steps {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.65rem;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.block {
  margin-top: 0.85rem;
  padding: 1.15rem 1.1rem 0.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.block h2 {
  margin-top: 0;
}

.band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 2.5rem;
}

.band .wrap {
  padding-block: 1.5rem 1.6rem;
}

.related {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 0.4rem;
}

.related ul {
  padding-left: 1.15rem;
}

.related li {
  margin: 0.35rem 0;
}

.next-step {
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  margin-top: 1.6rem;
}

.notice {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  max-width: 40rem;
}

.placeholder {
  background: var(--placeholder);
  border: 1px dashed var(--placeholder-edge);
  padding: 0.05rem 0.3rem;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.6rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
  color: var(--ink);
}

input,
select,
textarea {
  width: min(100%, 36rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 0.65rem;
  min-height: 44px;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

button {
  justify-self: start;
  min-height: 44px;
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
}

button:disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink);
  cursor: not-allowed;
}

.plain-links {
  padding-left: 1.15rem;
}

.plain-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  margin-top: 3.5rem;
  padding: 2.2rem 0 1.6rem;
}

.site-footer a {
  color: var(--accent-text);
}

.site-footer :focus-visible {
  outline-color: var(--accent-text);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-soft);
  margin: 0 0 0.35rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li a,
.site-footer .tel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-base {
  border-top: 1px solid rgba(243, 240, 234, 0.25);
  margin-top: 1.4rem;
  padding-top: 1rem;
}

.legal,
.resources {
  max-width: 46rem;
  color: var(--footer-soft);
}

.legal {
  font-size: 0.95rem;
  line-height: 1.5;
}

.resources a {
  color: var(--accent-text);
}

@media (min-width: 48rem) {
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }

  .service-index li {
    grid-template-columns: 2.5rem minmax(12rem, 16rem) 1fr;
    align-items: baseline;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 2rem;
  }

  .block {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 1.25rem 1.5rem;
  }
}

@media (min-width: 56rem) {
  .header-inner .nav-toggle,
  .header-inner .nav-toggle-label {
    display: none;
  }

  .header-inner .primary-nav {
    display: block;
    flex-basis: auto;
  }

  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem 1.05rem;
    padding: 0;
  }

  .primary-nav a {
    border-bottom: 0;
    min-height: 44px;
  }

  .nav-secondary {
    margin-left: 0.4rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1.25fr 0.95fr;
    align-items: center;
    gap: 2.75rem;
    padding-top: 2.4rem;
  }

  .coast {
    height: 16.5rem;
  }
}

@media (min-width: 72rem) {
  .service-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .service-cards > li:last-child {
    grid-column: 2;
  }
}

@media (max-width: 55.99rem) {
  .nav-secondary {
    border-left: 0;
    padding-left: 0;
  }
}

@media print {
  .skip,
  .topbar,
  .nav-toggle-label,
  .actions,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
