/*
Theme Name: Raleksas
Theme URI: https://www.raleksas.lt/
Author: UAB Raleksas
Description: Minimali vieno puslapio tema UAB „Raleksas“ svetainei. Be konstruktorių, be jQuery, be išorinių priklausomybių.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raleksas
*/

:root {
  --steel:      #232D33;
  --steel-deep: #171E22;
  --copper:     #A9663A;
  --paper:      #F1F0ED;
  --ink:        #1B2024;
  --muted:      #5D6871;
  --rule:       #CFCCC5;
  --plate:      #2B363D;
  --plate-etch: #96A2AA;

  --bg:      var(--paper);
  --fg:      var(--ink);
  --fg-soft: var(--muted);
  --line:    var(--rule);
  --band:    var(--steel);
  --band-fg: #E6E4DF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #14191C;
    --fg:      #E4E2DD;
    --fg-soft: #98A2A9;
    --line:    #2E383E;
    --band:    #10161A;
    --band-fg: #E4E2DD;
    --plate:   #232D33;
  }
}
:root[data-theme="dark"] {
  --bg:      #14191C;
  --fg:      #E4E2DD;
  --fg-soft: #98A2A9;
  --line:    #2E383E;
  --band:    #10161A;
  --band-fg: #E4E2DD;
  --plate:   #232D33;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nameplate__brand {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  width: auto; height: auto;
  clip: auto;
  padding: 0.6rem 1rem;
  background: var(--copper);
  color: #fff;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.masthead {
  background: var(--band);
  color: var(--band-fg);
  border-bottom: 3px solid var(--copper);
}
.masthead__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: #7E8C95;
}
.brand:hover .brand__mark { color: #A9B3BA; }
.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  line-height: 1;
}
.since {
  font-size: 0.9rem;
  color: #A9B3BA;
  letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--band);
  color: var(--band-fg);
  padding-bottom: 3.5rem;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.25rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.hero p {
  max-width: 34rem;
  font-size: 1.12rem;
  color: #C3CACF;
  margin: 0 0 1.75rem;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--copper);
}
.btn--solid { background: var(--copper); color: #fff; }
.btn--ghost { color: #E6E4DF; }
.btn:hover { background: #BD7443; color: #fff; }

.core { width: 100%; height: auto; display: block; }

/* ---------- Activity ---------- */

.activity { padding: 3.5rem 0 3rem; }
.activity h2 {
  font-size: 1.55rem;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.entries { border-top: 1px solid var(--line); }
.entry {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.entry__term {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--copper);
}
.entry__desc { margin: 0; color: var(--fg-soft); max-width: 44rem; }

/* ---------- Nameplate ---------- */

.plate-section { padding: 1rem 0 4rem; }

.nameplate {
  background: var(--plate);
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.028) 0px,
    rgba(255,255,255,0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  color: #D9E0E5;
  border: 1px solid #47535B;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 1.9rem 2.2rem 2.2rem;
  position: relative;
}
.nameplate::before,
.nameplate::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6C7A83;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45);
}
.nameplate::before { left: 0.8rem; }
.nameplate::after  { right: 0.8rem; }

.nameplate__brand {
  font-size: 1.45rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: #EDF1F3;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  padding-bottom: 0.9rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid #47535B;
}
.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin: 0;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px dotted #4E5A62;
  font-size: 0.97rem;
}
.row dt { color: var(--plate-etch); }
.row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.row dd a { text-decoration: none; border-bottom: 1px solid #6C7A83; }
.row dd a:hover { border-bottom-color: var(--copper); }

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
}
.contact h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.contact p { margin: 0; color: var(--fg-soft); }
.contact a { color: var(--copper); text-decoration: none; border-bottom: 1px solid transparent; }
.contact a:hover { border-bottom-color: var(--copper); }

/* ---------- Footer ---------- */

.foot {
  background: var(--band);
  color: #8D989F;
  font-size: 0.88rem;
  padding: 1.4rem 0;
}
.foot__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .core { max-width: 24rem; margin: 0 auto; }
  .rows { grid-template-columns: 1fr; gap: 0; }
  .entry { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (max-width: 480px) {
  .nameplate { padding: 1.6rem 1.15rem 1.8rem; }
  .row { font-size: 0.92rem; }
}
