/* picd semantic stylesheet */

:root {
  --pre-dark: #1e1e24;
}

body {
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1.5rem 0 0.5rem 0;
}

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

nav a:hover {
  text-decoration: underline;
}

nav span {
  color: var(--grey-light);
}

nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Base Box Component */
.box {
  border: 1px solid var(--grey-light);
  background-color: var(--pre);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.box small {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.box h1,
.box h2,
.box h3 {
  margin: 0;
  font-family: var(--font-mono);
}

.box h1 {
  font-size: 1.45rem;
}

.box h3 {
  font-size: 1.15rem;
}

.box p {
  margin: 0;
  line-height: 1.55;
}

.box footer {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.box footer span {
  color: var(--grey-light);
}

/* Hero Box */
.hero.box {
  padding: 1.75rem 1.5rem;
  gap: 1rem;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-title h1 {
  font-size: 1.65rem;
}

.lead {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--white);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
}

/* Description Box */
.description.box {
  padding: 0.85rem 1.25rem;
  gap: 0.4rem;
}

/* Linear Boxes Container */
.boxes {
  display: flex;
  flex-direction: column;
  gap: var(--grid-height);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.features .box {
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
}

.features h3 {
  font-size: 1rem;
}

.features h3::before {
  content: "[>] ";
  color: var(--green);
}

.features h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.features h3 a:hover {
  text-decoration: underline;
}

.features p {
  font-size: 0.85rem;
  color: var(--white-dark);
  line-height: 1.45;
}

hr {
  width: 100%;
  margin: 0;
}

/* Code & Pre Blocks */
pre {
  margin: 0;
  border: 1px solid var(--grey-light);
  background-color: var(--pre-dark) !important;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.45;
  overflow-x: auto;
}

.prompt,
.text-green {
  color: var(--green);
}

.comment,
.text-grey {
  color: var(--grey-light);
}

/* Details & FAQ */
details {
  border: 1px solid var(--grey-light);
  background-color: var(--bg-color);
  padding: 0.6rem 0.85rem;
  margin: 0;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details summary {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0;
  line-height: 1.5;
}

/* Form & Managed Beta */
.center {
  text-align: center;
  align-items: center;
}

form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

form input[type="email"] {
  background-color: var(--bg-color);
  border: 1px solid var(--grey-light);
  color: var(--text-color);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  outline: none;
}

form input[type="email"]:focus {
  border-color: var(--green);
}

form button {
  background: transparent;
  border: 1px solid var(--grey-light);
  color: var(--text-color);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}

form button:hover {
  border-color: var(--green);
  color: var(--green);
}

.hint {
  text-transform: none !important;
  color: var(--grey-light);
}

/* Site Footer */
footer.site-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0 3rem 0;
  font-size: 0.9rem;
}

footer.site-footer .links {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

footer.site-footer .links a {
  color: var(--text-color);
  text-decoration: none;
}

footer.site-footer .links a:hover {
  text-decoration: underline;
}

footer.site-footer .links span {
  color: var(--grey-light);
}

/* Logo */
.logo {
  stroke: #f2f2f2;
  fill: none;
}

.logo-md {
  width: 25px;
  height: 25px;
  display: inline-block;
}
