:root{
  /* Allowed palette */
  --ocean:   #18454E; /* Deep Ocean */
  --hemp:    #766E35; /* Hemp */
  --shell:   #F1A3A4; /* Conch Shell */
  --sunrise: #F3492B; /* Early Sunrise */
  --evening: #E56F33; /* Evening Light */
  --haze:    #E08D2D; /* Morning Haze */
  --ivory:   #FFFFF7; /* Off/ivory (allowed) */

  --radius: 1px;
  --max: 1040px;

  /* Only alphas of allowed colors */
  --text: var(--ocean);
  --muted: rgba(24,69,78,.72);        /* ocean */
  --border: rgba(118,110,53,.35);     /* hemp */
  --shadow: 0 14px 34px rgba(24,69,78,.14); /* ocean */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--ivory); /* keep global background pure ivory */
  line-height: 1.55;
}

a{ color: inherit; text-decoration:none; }
a:focus{ outline:none; }

.container{
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250,243,231,.92); /* ivory */
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  font-weight: 800;
  letter-spacing: .2px;
}

.nav{
  display:flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.nav a:hover{
  background: rgba(241,163,164,.30); /* shell */
  border-color: rgba(241,163,164,.70);
  color: var(--ocean);
}

/* Hero */
.hero{
  padding: 52px 0 10px;
}

.pill{
  display:inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(241,163,164,.18); /* shell */
  color: var(--ocean);
  font-size: 13px;
}

h1{
  margin: 14px 0 8px;
  font-size: clamp(38px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.03;
}

.sub{
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 16px;
}

.cta-row{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Sections */
.section{ padding: 26px 0; }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 20px;
  margin-bottom: 14px;
}

h2{
  margin:0;
  font-size: 22px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 10px;
}

h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: var(--haze);
}

h3{
  margin:0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.muted{ color: var(--muted); }

/* Buttons (solid palette fills, no gradients) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--ocean);
  background: var(--ivory);
  color: var(--ocean);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select:none;
}

.btn:hover{ transform: translateY(-1px); }
.btn:focus{ box-shadow: 0 0 0 6px rgba(224,141,45,.30); } /* haze */

.btn-small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-ocean{
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--ivory);
}
.btn-sunrise{
  background: var(--sunrise);
  border-color: var(--sunrise);
  color: var(--ivory);
}
.btn-evening{
  background: var(--evening);
  border-color: var(--evening);
  color: var(--ivory);
}

/* Grid (restores 3-column layout on desktop) */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.grid.two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cards */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  flex-direction:column;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(24,69,78,.18);
}

.card::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height: 8px;
}

.accent-ocean::before{ background: var(--ocean); }
.accent-sunrise::before{ background: var(--sunrise); }
.accent-shell::before{ background: var(--shell); }

.card-shell{
  background: rgba(241,163,164,.16); /* shell */
  border-color: rgba(241,163,164,.55);
}

.card-top{ flex:1; }

.card-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tags{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tags = real color chips */
.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid var(--ocean);
  background: var(--ivory);
  color: var(--ocean);
  font-size: 12px;
}

.tag-ocean{   background: var(--ocean);   border-color: var(--ocean);   color: var(--ivory); }
.tag-hemp{    background: var(--hemp);    border-color: var(--hemp);    color: var(--ivory); }
.tag-shell{   background: var(--shell);   border-color: var(--shell);   color: var(--ocean); }
.tag-sunrise{ background: var(--sunrise); border-color: var(--sunrise); color: var(--ivory); }
.tag-evening{ background: var(--evening); border-color: var(--evening); color: var(--ivory); }
.tag-haze{    background: var(--haze);    border-color: var(--haze);    color: var(--ocean); }

/* Panel */
.panel{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(118,110,53,.08); /* hemp */
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Link cards */
.linkcard{
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.linkcard:hover{
  transform: translateY(-2px);
  background: rgba(224,141,45,.10); /* haze */
  border-color: rgba(224,141,45,.55);
}

.linktitle{ font-weight: 750; }
.arrow{ color: rgba(24,69,78,.68); font-size: 18px; }

/* Footer */
.footer{
  padding: 36px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .grid.two{ grid-template-columns: 1fr; }
  .section-head{ align-items:flex-start; flex-direction:column; }
}
