/*!
 @abstract  Stringent Studios - Site CSS
 @author    Chris Stringer (cstringer42\@gmail.com)
 @version   1.0.2
 @updated   2015-11-16
 @copyright &copy; Copyright 2015 by Stringent Studios. All rights reserved.
*/

:root {
 --ink-strong: #112033;
 --ink: #22364d;
 --ink-soft: #5a6d82;
 --accent: #11798f;
 --accent-warm: #130f2b;
 --paper: #f5f9ff;
 --surface: rgba(255, 255, 255, 0.88);
 --surface-strong: #ffffff;
 --line: rgba(20, 40, 70, 0.12);
 --shadow-soft: 0 12px 36px rgba(8, 24, 45, 0.1);
 --shadow-pop: 0 18px 48px rgba(8, 24, 45, 0.18);
 --radius: 18px;
}

html,
body {
 margin: 0;
 padding: 0;
}

* {
 box-sizing: border-box;
}

body {
 font-family: "Manrope", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
 color: var(--ink);
 line-height: 1.6;
 background: #ffffff;
 min-height: 100vh;
}

a:link,
a:visited {
 color: var(--accent);
 text-decoration: none;
}

a:hover,
a:active,
section dt a:hover {
 color: #0f6072;
 text-decoration: underline;
}

.no-css {
 display: none;
}

header {
 margin: 0;
 padding: 2.5rem 1rem 1.75rem;
}

header .head-container {
 max-width: 1080px;
 margin: 0 auto;
 padding: 1.3rem;
 display: grid;
 grid-template-columns: auto minmax(0, 1fr);
 gap: 1.25rem;
 align-items: center;
}

header img {
 display: block;
 width: 5rem;
 height: 5rem;
 border: 0;
 filter: drop-shadow(0 8px 16px rgba(17, 121, 143, 0.18));
 transform: rotate(-3deg);
}

header h1 {
 margin: 0;
 color: var(--ink-strong);
 font-family: "Newsreader", "Times New Roman", serif;
 font-size: clamp(2rem, 3.8vw, 3.05rem);
 line-height: 1;
 letter-spacing: 0.015em;
}

header .subhead {
 display: inline-block;
 margin-top: 0.2rem;
 font-size: 0.85rem;
 font-weight: 700;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: var(--accent-warm);
}

header .hero-copy p {
 max-width: 62ch;
 margin: 0.9rem 0 0;
 color: var(--ink-soft);
 font-size: 1rem;
}

nav {
 position: sticky;
 top: 0;
 z-index: 10;
 backdrop-filter: blur(8px);
 background: linear-gradient(90deg, rgba(248, 252, 255, 0.95), rgba(240, 248, 255, 0.8));
 border-top: 1px solid var(--line);
 border-bottom: 1px solid var(--line);
}

nav ul {
 max-width: 1080px;
 margin: 0 auto;
 padding: 0.7rem 1rem;
 list-style: none;
 display: flex;
 gap: 0.65rem;
 flex-wrap: wrap;
}

nav ul li {
 margin: 0;
}

nav ul li:before {
 content: "";
}

nav ul li a {
 display: inline-block;
 padding: 0.5rem 0.9rem;
 border: 1px solid rgba(17, 121, 143, 0.2);
 border-radius: 999px;
 color: var(--ink-strong);
 font-size: 0.9rem;
 font-weight: 700;
 letter-spacing: 0.03em;
 transition: all 0.25s ease;
}

nav ul li a:hover {
 background: rgba(17, 121, 143, 0.14);
 border-color: rgba(17, 121, 143, 0.4);
 text-decoration: none;
}

nav ul li.active a {
 background: rgba(17, 121, 143, 0.18);
 border-color: rgba(17, 121, 143, 0.35);
}

#content {
 max-width: 1080px;
 margin: 0 auto;
 padding: 1.2rem 1rem 2rem;
}

section {
 margin: 0 0 1.25rem;
 padding: 1.1rem;
 border-radius: var(--radius);
 border: 1px solid var(--line);
 background: var(--surface);
 box-shadow: var(--shadow-soft);
}

section h2 {
 margin: 0;
}

section h2 a:link,
section h2 a:visited {
 color: var(--ink-strong);
 font-family: "Newsreader", "Times New Roman", serif;
 font-size: clamp(1.6rem, 2.5vw, 2.15rem);
 letter-spacing: 0.01em;
 text-decoration: none;
}

section .section-content {
 margin-top: 0.6rem;
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 0.9rem;
}

section .section-group {
 margin: 0;
 margin-bottom: 0.5em;
 padding: 0;
 border: 1px solid rgba(20, 40, 70, 0.1);
 border-radius: calc(var(--radius) - 4px);
 background:
  radial-gradient(720px 340px at 100% 0%, rgba(17, 121, 143, 0.16), transparent 68%),
  radial-gradient(480px 260px at 0% 0%, rgba(58, 35, 103, 0.14), transparent 70%),
  var(--surface-strong);
 box-shadow: 0 8px 22px rgba(15, 33, 52, 0.06);
 overflow: hidden;
 transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

section .section-group:hover {
 transform: translateY(-3px);
 box-shadow: var(--shadow-pop);
 border-color: rgba(17, 121, 143, 0.28);
}

section h3 {
 margin: 0;
 padding: 0.85rem 1rem;
 color: var(--ink-strong);
 background: linear-gradient(90deg, rgba(17, 121, 143, 0.12), rgba(58, 35, 103, 0.14));
 border-bottom: 1px solid var(--line);
 font-size: 1rem;
 letter-spacing: 0.03em;
 text-transform: uppercase;
}

section .item {
 margin: 1rem 1rem 1.2rem;
}

section dt {
 margin-bottom: 0.45rem;
 font-weight: 800;
 font-size: 1.05rem;
 padding-bottom: 0.35rem;
 border-bottom: 1px dashed rgba(35, 61, 89, 0.2);
}

section dd {
 margin: 0 0 0.95rem;
 color: #3b5168;
}

section ul.item {
 margin: 0.9rem 1rem 1.2rem;
 padding-left: 1.2rem;
}

section ul.item li {
 margin-bottom: 0.7rem;
}

#contact .section-group {
 padding: 0.95rem 1rem;
}

footer {
 max-width: 1080px;
 margin: 1.2rem auto 1.8rem;
 padding: 0 1rem;
 color: #4f6781;
 font-size: 0.95rem;
 text-align: center;
}

footer p {
 margin: 0.35rem 0;
}

/* Simple staged entrance for a more contemporary first impression. */
header,
nav,
section,
footer {
 opacity: 0;
 transform: translateY(16px);
 animation: reveal 0.7s ease forwards;
}

nav {
 animation-delay: 0.08s;
}

section:nth-of-type(1) {
 animation-delay: 0.14s;
}

section:nth-of-type(2) {
 animation-delay: 0.2s;
}

section:nth-of-type(3) {
 animation-delay: 0.26s;
}

footer {
 animation-delay: 0.32s;
}

@keyframes reveal {
 to {
  opacity: 1;
  transform: translateY(0);
 }
}

@media (max-width: 900px) {
 section .section-content {
  grid-template-columns: 1fr;
 }
}

@media (max-width: 640px) {
 header {
  padding: 1.2rem 0.8rem 1rem;
 }

 header .head-container {
  padding: 0.9rem;
  grid-template-columns: 1fr;
  gap: 0.75rem;
 }

 header img {
  width: 4.1rem;
  height: 4.1rem;
 }

 header .hero-copy p {
  font-size: 0.95rem;
 }

 nav {
  top: 0;
 }

 nav ul {
  padding: 0.6rem 0.75rem;
 }

 nav ul li a {
  font-size: 0.84rem;
  padding: 0.4rem 0.75rem;
 }

 #content {
  padding: 0.8rem 0.75rem 1.3rem;
 }

 section {
  padding: 0.85rem;
  border-radius: 14px;
 }

 section .section-content {
  margin-top: 0.4rem;
 }

 section h2 {
  cursor: pointer;
 }

 section h2:before {
  content: "▸ ";
  color: var(--accent);
 }

 section.active h2:before {
  content: "▾ ";
 }

 section .section-content {
  display: none;
 }

 #contact .section-content {
  display: block;
 }

 section .item,
 section ul.item {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
 }
}
